Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to Plot 3 graph in one figure

1 view
Skip to first unread message

Joopin Ahmadi

unread,
Dec 31, 2009, 5:22:03 AM12/31/09
to
Hi

I need your help, and your help would be really appreciated. Thanks.

I ran in to a problem, I need to plot a graph with the below features.

I have a series of X data and corresponding to these Xs, I have 3 series of Ys.

I have to plot these data which would be 3 graphs in just a single Figure.

So I need a command in MATLAB which can plot 3 graphs with 3 different scales in a single figure.

On the other hand, I need those y axes in the logarithmic scale.The x axis is in the linear scale.
any idea would be ok...
here is a sample picture:
http://i741.photobucket.com/albums/xx53/joopin/sdarticle2009_Page_08.jpg

I`m really looking forward to your kind help.

Good luck,

Joopin

Wayne King

unread,
Dec 31, 2009, 6:34:03 AM12/31/09
to
"Joopin Ahmadi" <joopin...@yahoo.com> wrote in message <hhhu0b$b6t$1...@fred.mathworks.com>...

Hi,
>>doc hold

or place your Y values in a matrix

also look at
>>doc semilogy

or if you wanted to plot the Y as something like dB, you can always just do
plot(X,10*log10(Y)).

You should really spend some time going through the Matlab documentation. Particularly things like the basic Getting Started guide.

Hope that helps,
Wayne

ImageAnalyst

unread,
Dec 31, 2009, 10:44:32 AM12/31/09
to
And make sure you use "hold on" in between the 3 calls to plot your
data or else your latest plot will blow away your earlier one.

Joopin Ahmadi

unread,
Jan 10, 2010, 4:50:04 AM1/10/10
to
ImageAnalyst <imagea...@mailinator.com> wrote in message <f1cfbddf-b446-4f53...@h2g2000vbd.googlegroups.com>...

> And make sure you use "hold on" in between the 3 calls to plot your
> data or else your latest plot will blow away your earlier one.


yes you are right , i need 3 y-axis with 3 different scale but as far as i know , with the "hold" command we are able to plot several graph with just 1 y axis. so then how about 3 y axis...!!!?i need to have 3 separate y-axis in just one figure!!!
hope i can make it clear!
Cheers,
Joopin

0 new messages