Hello!
I need help with plotting equation in matlab. I need to plot curve using an equation. The curve should look like that one in attached picture (please do not mind description)
so far ive tried this, but it plots only one point. i dont know how to correctly use for cycles. This is my m-file:
i was trying to plot the curve using command
Any help would be much appreciated.
I need help with plotting equation in matlab. I need to plot curve using an equation. The curve should look like that one in attached picture (please do not mind description)
so far ive tried this, but it plots only one point. i dont know how to correctly use for cycles. This is my m-file:
Q=0.49; Rac=0.0015; freq=20000; Cr=1/(2*pi*Q*freq*Rac); Lr=1/(((2*pi*freq)^2)*Cr); Lp=m*Lr; w=2*pi*freq; w0=1/(sqrt(Lr*Cr)); wp=1/(sqrt(Lp*Cr)); Race=14685.973; Qe=(sqrt(Lr/Cr))*(1/Race); %/////////////////////////////////////// for m=1:0.1:5; for freq=20000:10:30000; ((w^2)/(w0^2)*(sqrt(m*(m-1))))/(((w^2)/((wp^2))-1)+1i*(w/w0)* (((w^2)/(w0^2))-1)*(m-1)*Qe); end end
i was trying to plot the curve using command
plot(freq,m)in command window
Any help would be much appreciated.