指定した列にある値の範囲の行を元のテーブルか抽出して、新しいテーブルを作りたい
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAIKI
am 24 Mär. 2023
Kommentiert: DAIKI
am 24 Mär. 2023
一つのテーブルの中に、Var1、Var2、・・・といろいろなデータがあるのですが、
その中で、指定した列(例えば5列目)に入力されている値に対して、指定した範囲(例えば2~6の範囲)の値が入力されている行だけを、抜き取って新しいテーブルを作ることは出来ますでしょうか?
Akzeptierte Antwort
Hernia Baby
am 24 Mär. 2023
Bearbeitet: Hernia Baby
am 24 Mär. 2023
indexに条件の合うものを格納すれば可能です
A = array2table(randi([0 10],8))
idx = A.Var6 < 8 & A.Var6 >2
B = A(idx,:)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!