189 views (last 30 days)

Show older comments

i want to plot the points (0,2) (1,9/4) (2,38/17) (3,161/72) (4,682/305)

Niels
on 25 Jan 2017

plot([0 1 2 3 4],[2 9/4 38/17 161/72 682/305])

Niels
on 25 Jan 2017

you can change the YAxes Tick but it seems like you are not familiar with structur arrays nor properties of anything, so it will be hard for you. if you want to have more decimals on your y axes you have to acces the axes-properties .YTick:

>> h=plot(x,y,'.--');

>> h.Parent.YTick=[linspace(2,2.2,3),linspace(2.21,2.25,6)];

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!