対象となるインデックスを返して、格子を選択
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
michio
am 14 Jun. 2021
「格子の抽出」とのことですが、条件を満たしている行・列が分かればよいのかと推測しています。例えば 4x4 の配列で 10 以上の要素を持つ行数・列数を取り出す例だと以下のようになります。参考になりますでしょうか。
sample = magic(4)
[row,col] = find(sample>10)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!