How to change ghraph interval when using fplot

1 visualización (últimos 30 días)
mohammad Ghazy
mohammad Ghazy el 23 de Mzo. de 2019
Comentada: Stephan el 24 de Mzo. de 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

Respuesta aceptada

Stephan
Stephan el 23 de Mzo. de 2019
Editada: Stephan el 23 de Mzo. de 2019
fplot(@(v) v.^2,[0 100])
  2 comentarios
mohammad Ghazy
mohammad Ghazy el 24 de Mzo. de 2019
thank you that work, can you also tell me how to change interval for y axis?
Stephan
Stephan el 24 de Mzo. de 2019
fplot(@(v) v.^2,[0 100])
ylim([-2000 12000])

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by