MATLAB Problem

Status
Not open for further replies.

drinkmorejava

Diamond Member
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
 

pray4mojo

Diamond Member
Mar 8, 2003
3,647
0
0
cant you just use the plot editor and click on the plot and plot points that way?
 

drinkmorejava

Diamond Member
Jun 24, 2004
3,567
7
81
Originally posted by: pray4mojo
cant you just use the plot editor and click on the plot and plot points that way?

Can only select points along the plot to display their properties
 

Fenixgoon

Lifer
Jun 30, 2003
33,676
13,403
136
yeah, not sure how to add points onto the bode plot, and i'm digging through the m files themselves (bode.m, ltiplot.m, etc.)
 
Status
Not open for further replies.