Setting of Axis for displaying graph in Matlab 6.06

Status
Not open for further replies.

nsit1234

Newbie level 6
Joined
May 20, 2006
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,350
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 .
 

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…