等高線上の値(行列のIndex)を取得する方法はありますか?
조회 수: 3 (최근 30일)
이전 댓글 표시
채택된 답변
mizu
2018년 11월 21일
出力引数を指定すれば取得できます.
x = linspace(-2*pi,2*pi);
y = linspace(0,4*pi);
[X,Y] = meshgrid(x,y);
Z = sin(X)+cos(Y);
figure
[C,h] = contour(X,Y,Z)
C が等高線行列です.X値やY値のことであれば,h.XData や h.YData で取得できます.
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!