等高線上の値(行列のIndex)を取得する方法はありますか?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
KenShi
el 21 de Nov. de 2018
Comentada: KenShi
el 21 de Nov. de 2018
contourにて行列の等高線を描けますが、等高線上の値(行列のIndex)を取得する方法はありますか?
値が変わる境界を抽出したいです。
0 comentarios
Respuesta aceptada
mizu
el 21 de Nov. de 2018
出力引数を指定すれば取得できます.
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 で取得できます.
Más respuestas (0)
Ver también
Categorías
Más información sobre 等高線図 en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!