You are on page 1of 2

Send me both the code from matlab in word file and the graphs .

Change the colours of all three lines and slightly the thickness, give them all different
colours.
Code1: -
clc

clear all

pkg load symbolic

syms v b

cn=5000/(2.16*((sqrt(900*(cos(b*pi/180)^2-1)-v^2)))-30*cos(b*pi/180)^2)

ez1=ezplot(subs(Cn,v,6),[0,22])

hold on

ez2=ezplot(subs(Cn,v,8),[0,22])

ez3=ezplot(subs(Cn,v,10),[0,22])

legend('6m/s Side Wind','8m/s Side Wind','10m/s Side Wind')

set(ez1,'çolor',[1,0,0])

set(ez2,'color',[0,1,0])

hold on

Graph should look something like this and can you please change X and Y – axis labels to “b (SIDE WIND ANGLE)”
and “Cn (COEFF. Of STABILITY)” respectively.
Code2 : -
clc

clear all

pkg load symbolic

syms v b

cn=5000/(2.16*((sqrt(900*(cos(b*pi/180)^2-1)-v^2))-30*cos(b*pi/180)^2)

ez4=ezplot(subs(cn,v,6),[0,22])

hold on

ez5=ezplot(diff(subs(cn,v,8)),[0,22])

ez6=ezplot(diff(subs(cn,v,10)),[0,22])

legend('6m/s side wind','8m/s side wind','10m/s side wind')

set(ez4,'çolor',[1,0,0])

set(ez5,'color',[0,1,0])

hold off

Same for this and change X- and Y- labels to “b (SIDE WIND ANGLE)” and “RATE of CHANGE of YAW COEFF.”
Respectively.

If you find any mistake or error do verify this C n equation in code.

You might also like