How to use ezplot

조회 수: 8 (최근 30일)
Kentji Paolo Mappala
Kentji Paolo Mappala 2020년 8월 10일
편집: Walter Roberson 2020년 8월 10일
Hi im new to matlab, ive tried ez plot but it wont run x^2 - 9y^2=81. Can someone help?

답변 (2개)

Walter Roberson
Walter Roberson 2020년 8월 10일
ezplot(@(x,y)x.^2 - 9*y.^2 - 81)

Star Strider
Star Strider 2020년 8월 10일
편집: Star Strider 2020년 8월 10일
The ezsurf (and fsurf) functions accept only single-variable functions.
Try this:
figure
ezcontour(@(x,y) x^2 - 9*y^2 - 81, [-10 10 -10 10])
the fcontour, ezsurf and fsurf functions are also options.
Make appropriate changes to get the result you want.
EDIT — (9 Aug 2020 at 4:15)
Another possibility:
figure
hec = ezcontour(@(x,y) x^2 - 9*y^2, [-50 50 -50 50]);
hec.LevelList = 81;
.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 8월 10일
편집: Walter Roberson 2020년 8월 10일
but ezplot did do an implicit plot https://www.mathworks.com/help/matlab/ref/ezplot.html

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

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by