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 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