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

1 visualizzazione (ultimi 30 giorni)

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?

Risposte (1)

Star Strider
Star Strider il 25 Ott 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.

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by