Hello
With below code I have made a bode plot. Then I have calculatted an angular frequency.
I want to insert a vertical line from my found angular frequency(found to be 0.041889), and also a horizontal line so I can determine the phase angel on the y-axis:
Can this be done?
IThe plan is that it should look like this:
My code:
sys1=tf([1805.1],[4637.61 136.2 1]) %transfer function
w=logspace(-5,2); %Define frequency range
[A,phi]=bode(sys1,w); %Amplitude ratio (A) and phase shift (phi)
figuresubplot(2,1,1)loglog(w,A(:)) %Amplitude ratio vs frequency
grid onylabel('AR')subplot(2,1,2)semilogx(w,phi(:))ylabel('Phase angle(Degrees)')xlabel('Frequency(rad/s)')legend({'Lower tank'},'Fontsize',14) %add "title" to plot...
Best Answer