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

2 vues (au cours des 30 derniers jours)
AliHg
AliHg le 25 Oct 2019

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?

Réponses (1)

Star Strider
Star Strider le 25 Oct 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.

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by