Can anyone explain this step:? Contour function

Considering :
X = 80 x 800;
Y = 80 x 800
c = 80 x 800
Why the code below results in a 2 x 81 matrix (c5)?
c5 = contour(X,Y,c,[0.5 0.5]);

回答 (1 件)

KSSV
KSSV 2022 年 11 月 26 日

0 投票

[X,Y,Z] = peaks(50) ;
c = contour(X,Y,Z) ;
hold on
plot(c(1,:),c(2,:),'*r')
axis([-3 3 -3 3])
It gives you the (x,y) coordinates of the contour lines.

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

製品

リリース

R2022a

タグ

質問済み:

2022 年 11 月 26 日

回答済み:

2022 年 11 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by