How to change ghraph interval when using fplot

1 view (last 30 days)
fplot(@(v) v^(2))
So I plotted an equation using fplot and as a default I get interval [ -5 5 ] and I need to change it to for example [ 0 100 ] how can I do that.
my output is this graph right now
askkk.PNG

Accepted Answer

Stephan
Stephan on 23 Mar 2019
Edited: Stephan on 23 Mar 2019
fplot(@(v) v.^2,[0 100])
  2 Comments
mohammad Ghazy
mohammad Ghazy on 24 Mar 2019
thank you that work, can you also tell me how to change interval for y axis?

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!