How to use ezplot

6 vues (au cours des 30 derniers jours)
Kentji Paolo Mappala
Kentji Paolo Mappala le 10 Août 2020
Modifié(e) : Walter Roberson le 10 Août 2020
Hi im new to matlab, ive tried ez plot but it wont run x^2 - 9y^2=81. Can someone help?

Réponses (2)

Walter Roberson
Walter Roberson le 10 Août 2020
ezplot(@(x,y)x.^2 - 9*y.^2 - 81)

Star Strider
Star Strider le 10 Août 2020
Modifié(e) : Star Strider le 10 Août 2020
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 commentaire
Walter Roberson
Walter Roberson le 10 Août 2020
Modifié(e) : Walter Roberson le 10 Août 2020
but ezplot did do an implicit plot https://www.mathworks.com/help/matlab/ref/ezplot.html

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by