The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: number of values on the x axis
Replies: 2   Last Post: Apr 22, 2013 3:29 PM

Advanced Search

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

Posts: 3
Registered: 4/22/13
Re: number of values on the x axis
Posted: Apr 22, 2013 3:29 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

zack00 <> wrote in message <>...
> Hi
> I have a axes with 10 number of values on x axis..If I starting plot signal number of values will automatically change..sometimes is it 6 values, sometimes is it 8 values
> But I want still 10 values on x axis..How can i do it?

Zack, you could use a listener as followes


where the function maintainTicks is something like

function maintainTicks(~,~,axesHandle)

xLimAxes = xlim(axesHandle) %Get the current limits
set(axesHandle,'xticks', linspace(xLimAxes(1),xLimAxes(2),10)) %Set the tick marks where you want them

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.