From: Olivier on
Hello,

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.
From: us on
"Olivier " <quiquido2000(a)hotmail.com> wrote in message <hsjs7q$7hr$1(a)fred.mathworks.com>...
> Hello,
>
> 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
From: Olivier on
So here is an example where I add some points on an already existing plot of a sine :

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.
From: MFjbj2 on
Hi all.

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.