how to get a contour from a matrix that its values varies between zero and one?
3 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Star Strider
on 25 Oct 2019
Try this:
M = rand(10);
figure
contour(M)
figure
contourf(M)
Experiment to get the result you want.
0 Comments
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!