how to get a contour from a matrix that its values varies between zero and one?

3 visualizaciones (últimos 30 días)

assume we have a random 10×10 two dimensional matrix that its values are between zero and one. how can I obtain a 2D contour from it?

Respuestas (1)

Star Strider
Star Strider el 25 de Oct. de 2019
Try this:
M = rand(10);
figure
contour(M)
figure
contourf(M)
See the documentation on contour for more information.
Experiment to get the result you want.

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