How do I plot a contour map in Matlab?

11 visualizaciones (últimos 30 días)
cstibbards
cstibbards el 10 de Sept. de 2018
Comentada: cstibbards el 10 de Sept. de 2018
>> x=-6:0.001:6; >> y=-6:0.001:6; >> [X,Y]=meshgrid(x,y); >> phi=x.*y-y; >> contour(x,y,phi) Error using contour (line 48) Z must be at least a 2x2 matrix.

Respuesta aceptada

madhan ravi
madhan ravi el 10 de Sept. de 2018
Editada: madhan ravi el 10 de Sept. de 2018
EDITED
x=linspace(-6,6,1000);
y=x;
[X,Y]=meshgrid(x,y)
phi=X.*Y-Y
contour(X,Y,phi)
  5 comentarios
madhan ravi
madhan ravi el 10 de Sept. de 2018
did it work @cstibbards?
cstibbards
cstibbards el 10 de Sept. de 2018
Not yet, but I think its an issue with my computer running Matlab, not the code. Thanks.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by