Borrar filtros
Borrar filtros

等高線上の値(行列の​Index)を取得す​る方法はありますか?

7 visualizaciones (últimos 30 días)
KenShi
KenShi el 21 de Nov. de 2018
Comentada: KenShi el 21 de Nov. de 2018
contourにて行列の等高線を描けますが、等高線上の値(行列のIndex)を取得する方法はありますか?
値が変わる境界を抽出したいです。

Respuesta aceptada

mizu
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 で取得できます.
  1 comentario
KenShi
KenShi el 21 de Nov. de 2018
ありがとうございます!!!
やりたかった事ができました。
とても助かりました。

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!