Rules | Recent posts | topic RSS | Search | Register  | Log in

Setting of Axis for displaying graph in Matlab 6.06

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews
Author Message
nsit1234



Joined: 20 May 2006
Posts: 19


Post01 May 2008 7:16   Setting of Axis for displaying graph in Matlab 6.06

Hi
I'm using Matlab 6.06 and in a program i am required to set the axis of a graph I'm trying to display y axis as 10^(-25) to 1 and X axis 0 to 50. Is there any command which I can use .
Back to top
echo47



Joined: 07 Apr 2002
Posts: 4212
Helped: 564


Post01 May 2008 8:26   Setting of Axis for displaying graph in Matlab 6.06

Here's one way:
x = 0 : 50;
y = 3 .^ (x-50);
semilogy(x, y);


Another way:
x = 0 : 50;
y = 3 .^ (x-50);
plot(x, y);
set(gca, 'YScale', 'log');


I'm using version 7.5. I don't have version 6.06 to try.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap