Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: changes x-axis from plot matrix
Replies: 2   Last Post: Nov 20, 2012 1:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 8,208
Registered: 6/7/07
Re: changes x-axis from plot matrix
Posted: Nov 20, 2012 1:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 11/20/2012 12:03 PM, Arantxa wrote:
> Hi,
> I have plotted a row (70) from a matrix 76*75
>
> R=plot (A(70,:))
>
> On the plot I can see that the x-axis is from 0 to 76.
>
> Do you know how i can change the x-axis? I need multiply all the x-axis
> by 0.2.


x=0:0.2:0.2*(size(A,2)-1);

plot(x,A(70,:))

Or you can retrieve the 'xticklabel' property and mung on it...

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.