Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to change the axes in the plot figure in Matlab?

Status
Not open for further replies.

mos33

Junior Member level 1
Junior Member level 1
Joined
Aug 31, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,379
hi all
i need to change the axes in the plot figure instead of 1,2,3,......
to pi,2pi,3pi,.....
how can i do that??
 

Re: matlab question

I think there is no way to do that,
probably you must show 1, 2, 3, ... and then in the label of axis, mention that the values must be x(pi)...
 

Re: matlab question

use the following:

x = 0:pi/20:2*pi;
plot(x,sin(x))
set(gca,'XTick',0:pi/2:2*pi)
set(gca,'XTickLabel',{'0','pi/2','pi','3/2*pi','2*pi'})
 

Re: matlab question

Hi
Follow these steps:

1. In the plot figure go to:
Edit -> Axes Properties...

2. Press Ticks button.

3. On the Labels Column type your favorites labels such as: pi, pi1, ...

4. Press OK and close <Property Editor>.
 

matlab question

For changing the axes in the plot figure,
Go to plot window
go to Edit and then select the Axis Properties and press ticks buttons where you want on the labels type whatever you want.
And pres Ok and close the property editor
 

Re: matlab question

So why do you kvsm2k just repeat the answer from amir_h?
 

Re: matlab question

thanks all
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top