matlab - 2D and 3D ploting of w realated coefficients -


here of 3 coefficients relation w.

a = (38.6068*ω^2-0.37)/(0.1288*ω^2+0.1396) b = ((18.58-0.3589*a)*ω^2)/(0.37) c = ((30.45*a*b*ω^2 ))/(0.5*(0.1288*a*ω^2+0.1396*b)) 

i want plot , b in 2d , a,b , c in 3d in matlab interval w = (0,0.48321).

note : a,b,c have relation each other in formulas.

you have modify code you've posted using following notation in operations:

./, .*, .^

this allows perform operations on arrays "elemt-wise".

to plot a , b on 2d chart can use plot built in function.

to plot a, b , b on wd chart can use plot3 built in function.

the 3d plot can line , not surface since being c (1 x n) array (with n=length(c)).

the updated version of code:

omega=0:.01:0.48321; = (38.6068*omega.^2-0.37)./(0.1288*omega.^2+0.1396); b = ((18.58-0.3589*a).*omega.^2)/(0.37); c = ((30.45*a.*b.*omega.^2 ))./(0.5*(0.1288*a.*omega.^2+0.1396.*b)); 

the 2d plot of a, b, c

figure plot(omega,a,'r','linewidth',2) hold on plot(omega,b,'b','linewidth',2) plot(omega,c,'k','linewidth',2) grid on legend('a','b','c','location','best') 

enter image description here

the 3d plot

figure plot3(a,b,c,'r','linewidth',2) grid on xlabel('parm. a','fontweight','bold') ylabel('param. b','fontweight','bold') zlabel('param. c','fontweight','bold') 

enter image description here


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -