I have to add experimental data (points) on a bode plot in matlab but I don't know how to do. On other plots I would just do with hold on and plot(x,y), but here it doesn't work because the two plots are in one.
Hope my problem is clear.
Thank you.
no... can you show a sparse(!) example...
us
t = 0:0.1:4;
x = sin(t);
hold on
plot(y,t)
% I add an arbitrary point
plot(2,0.5,'s','MarkerFaceColor','g','MarkerEdgeColor','k')
hold off
Now my problem : I've got pairs of values (frequency,amplitude) and (frequency,phase). I would like to add them the same way on a bode plot. I tried the same as in the example, but it only appeared on the phase plot so I tried to mess with subplot but it didn't work.
So is there any way to "select" the amplitude plot to add some points there too?
Thank you.
This is exactly the same problem I'm trying to find a solution to. So all information would be appreciated.
See also the thread I created:
http://mathforum.org/kb/thread.jspa?threadID=2071466
Best regards.
Jon Bj.
I fixed this problem by simply using:
bodemag(g)
instead of
bode(g)
Then using the method you illustrate below allowed for data points to be added to magnitude plot. If you are still interested in the Phase plot you can simply right click on the figure that was made and make it visible (or probably write a line of code to make it visible after you add the data points).
James
"Olivier " <quiqui...@hotmail.com> wrote in message <hskb0p$mns$1...@fred.mathworks.com>...