Can anyone explain this step:? Contour function

조회 수: 1 (최근 30일)
FREDERICO CARVALHO
FREDERICO CARVALHO 2022년 11월 26일
답변: KSSV 2022년 11월 26일
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일
[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.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by