Hi, I am trying to plot 3 variables in ezcontour plot. But it shows error.

1 vue (au cours des 30 derniers jours)
I want to plot this equation:
x^2+sin(x*y)+y^2+z^2=0
using ezcontour over the domain (-pi/2<x<pi/2,-pi/2<y<pi/2). But I am getting error. Help please. Thank you

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Avr 2016
ezcontour() and the new fcontour() can only plot functions of at most 2 variables. You will need to construct a 3D array and use isosurface() on it.
My testing suggests that the only solution is x = 0, y = 0, z = 0
  2 commentaires
Krittika Saha
Krittika Saha le 13 Avr 2016
So I need to create a 3D array first by meshgrid function?
Walter Roberson
Walter Roberson le 13 Avr 2016
Yes, isosurface requires meshgrid inputs.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by