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

2 ビュー (過去 30 日間)
AliHg
AliHg 2019 年 10 月 25 日
回答済み: Star Strider 2019 年 10 月 25 日

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 Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by