Borrar filtros
Borrar filtros

Need some help setting up a matrix to contour plot

2 visualizaciones (últimos 30 días)
Phil
Phil el 11 de Dic. de 2012
I have a 19X19 array that I need to set up in order to contour plot it. I'm very new at MATLAB and really have no clue as to how to set up the array in order to contour plot it.

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Dic. de 2012
Once you have created the array (call it "Z" for the moment) you can contour plot it using
contour(Z)
For example,
Z = [2 5 8;
5 9 8;
5 8 2;
8 2 0]
plot(Z)

Más respuestas (0)

Categorías

Más información sobre Contour Plots 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