How to change ghraph interval when using fplot

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

 采纳的回答

fplot(@(v) v.^2,[0 100])

2 个评论

thank you that work, can you also tell me how to change interval for y axis?
fplot(@(v) v.^2,[0 100])
ylim([-2000 12000])

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by