Ältere Kommentare anzeigen
A 430000×5 table
Aがワークスペースにある変数です。
Aの二行目に含まれるNaN以外のデータを取り出し配列を整理した場合にはどうすれば良いでしょうか。
431520 0.1 130 33 145
431450 NaN 181 91 123
431050 0.1 131 33 299
431370 13 130 34 348
431080 13 33 33 236
438077 14 130 34 308
431051 12 130 33 35
上記のNaNが含まれる列以外の行列データが欲しいのですが、わからないです。
Antworten (1)
Hernia Baby
am 11 Jul. 2022
Bearbeitet: Hernia Baby
am 11 Jul. 2022
rmmissingが使えます。
A = [431520 0.1 130 33 145
431450 NaN 181 91 123
431050 0.1 131 33 299
431370 13 130 34 348
431080 13 33 33 236
438077 14 130 34 308
431051 12 130 33 35]
欠損値のある列を削除なのでdimを2にします
rmmissing(A,2)
1 Kommentar
Hernia Baby
am 11 Jul. 2022

Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!