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?
0 个评论
回答(1 个)
Star Strider
2019-10-25
Try this:
M = rand(10);
figure
contour(M)
figure
contourf(M)
Experiment to get the result you want.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!