Can anyone explain this step:? Contour function

1 vue (au cours des 30 derniers jours)
FREDERICO CARVALHO
FREDERICO CARVALHO le 26 Nov 2022
Réponse apportée : KSSV le 26 Nov 2022
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]);

Réponses (1)

KSSV
KSSV le 26 Nov 2022
[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.

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by