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

1 次查看(过去 30 天)

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?

回答(1 个)

Star Strider
Star Strider 2019-10-25
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.

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by