- Jun 24, 2004
- 3,567
- 7
- 81
NM, got it. I'm just exporting the bode data with, [mag,phase]=bode(G,w); and redoing the plots
http://www.drinkmorejava.com/Prelab%203.m
Basically, we were given a theoretical transfer function and the physical circuit, then took experimental measurements, and now need to plot the experimental values for Gain and Phase on top of the transfer function graph.
I used
figure(1)
N=[45454.5]
D=[1 45454.5]
G=tf(N,D)
bode(G)
My question is, how can I plot the experimental points on top of the Bode plot? Trying something like
hold on
plot(-5e4,-30,'*')
Will let me draw on the Phase plot, but how can I get on the Magnitude plot? I tried playing with subplot(2,1,1), but it doesn't seem to do anything but squish the entire plot.
Thanks in advance
http://www.drinkmorejava.com/Prelab%203.m
Basically, we were given a theoretical transfer function and the physical circuit, then took experimental measurements, and now need to plot the experimental values for Gain and Phase on top of the transfer function graph.
I used
figure(1)
N=[45454.5]
D=[1 45454.5]
G=tf(N,D)
bode(G)
My question is, how can I plot the experimental points on top of the Bode plot? Trying something like
hold on
plot(-5e4,-30,'*')
Will let me draw on the Phase plot, but how can I get on the Magnitude plot? I tried playing with subplot(2,1,1), but it doesn't seem to do anything but squish the entire plot.
Thanks in advance
