対象となるインデックスを返して、格子を選択
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MAPのz軸(青色枠の中の値)が2以上となる格子(x軸とy軸)を選択したい。
例:z軸の値=3
2以上となる格子は、x軸=800,1000/y軸=0
格子の抽出をMATLABで自動処理したいです。
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/652130/image.png)
0 comentarios
Respuestas (2)
michio
el 14 de Jun. de 2021
「格子の抽出」とのことですが、条件を満たしている行・列が分かればよいのかと推測しています。例えば 4x4 の配列で 10 以上の要素を持つ行数・列数を取り出す例だと以下のようになります。参考になりますでしょうか。
sample = magic(4)
[row,col] = find(sample>10)
0 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!