Oct 31, 2007 #1 M mos33 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??
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??
Nov 2, 2007 #2 E ehsanica Member level 4 Joined Nov 15, 2005 Messages 73 Helped 12 Reputation 24 Reaction score 6 Trophy points 1,288 Activity points 1,718 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 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)...
Nov 4, 2007 #3 J Jone Advanced Member level 4 Joined Oct 20, 2006 Messages 107 Helped 11 Reputation 22 Reaction score 4 Trophy points 1,298 Activity points 2,157 Re: matlab question use the following: x = 0i/20:2*pi; plot(x,sin(x)) set(gca,'XTick',0i/2:2*pi) set(gca,'XTickLabel',{'0','pi/2','pi','3/2*pi','2*pi'})
Re: matlab question use the following: x = 0i/20:2*pi; plot(x,sin(x)) set(gca,'XTick',0i/2:2*pi) set(gca,'XTickLabel',{'0','pi/2','pi','3/2*pi','2*pi'})
Nov 13, 2007 #4 amir_h Newbie level 6 Joined Nov 3, 2007 Messages 11 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Location Gonabad-Iran Activity points 1,336 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>.
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>.
Nov 27, 2007 #5 K kvsm2k Newbie level 5 Joined Nov 27, 2007 Messages 10 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location Trivandrum Activity points 1,345 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
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
Nov 27, 2007 #6 J Jone Advanced Member level 4 Joined Oct 20, 2006 Messages 107 Helped 11 Reputation 22 Reaction score 4 Trophy points 1,298 Activity points 2,157 Re: matlab question So why do you kvsm2k just repeat the answer from amir_h?
Mar 7, 2008 #7 M mos33 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 Re: matlab question thanks all