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: how to define x and y axis ranges?
Replies: 1   Last Post: Feb 10, 2013 6:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
dpb

Posts: 8,143
Registered: 6/7/07
Re: how to define x and y axis ranges?
Posted: Feb 10, 2013 6:58 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/10/2013 5:07 PM, lala wrote:
> Her im trying to have my x-axis or "a-axis" defined from 0 to 90, ith 15
> unit interval. My y-axis or "r" is also defined as from 0 to 22, with
> intervals of one unit. Then i have some points that i want to show in

...

>> r=[21 18 17 21 11]; %reading
>> a=[0 30 45 60 90]; %angle
>> plot(a,r,'bs--')
>> set(gca,'xtick',[0:15:90])
>> ylim([0 22])
>> set(gca,'ytick',[0:22])
>>


I suspect the unit tick marks on the y-axis will be too busy, but using
a smaller font may make them bearable...

--




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.