How to change ghraph interval when using fplot

조회 수: 1 (최근 30일)
mohammad Ghazy
mohammad Ghazy 2019년 3월 23일
댓글: Stephan 2019년 3월 24일
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

채택된 답변

Stephan
Stephan 2019년 3월 23일
편집: Stephan 2019년 3월 23일
fplot(@(v) v.^2,[0 100])
  댓글 수: 2
mohammad Ghazy
mohammad Ghazy 2019년 3월 24일
thank you that work, can you also tell me how to change interval for y axis?
Stephan
Stephan 2019년 3월 24일
fplot(@(v) v.^2,[0 100])
ylim([-2000 12000])

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by