How to change ghraph interval when using fplot

1 Ansicht (letzte 30 Tage)
mohammad Ghazy
mohammad Ghazy am 23 Mär. 2019
Kommentiert: Stephan am 24 Mär. 2019
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

Akzeptierte Antwort

Stephan
Stephan am 23 Mär. 2019
Bearbeitet: Stephan am 23 Mär. 2019
fplot(@(v) v.^2,[0 100])
  2 Kommentare
mohammad Ghazy
mohammad Ghazy am 24 Mär. 2019
thank you that work, can you also tell me how to change interval for y axis?
Stephan
Stephan am 24 Mär. 2019
fplot(@(v) v.^2,[0 100])
ylim([-2000 12000])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by