- NaN for double, single, duration, and calendarDuration
- NaT for datetime
- <missing> for string
- <undefined> for categorical
- ' ' for char
- {''} for cell of character arrays
Fill missing cells NANs
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I imported data from textfile using data editor.
Some cells are <missing data>
This is string data.
All cells must be numerical or NAN
How can I fill the missing data cells with NAN?
0 件のコメント
回答 (1 件)
Cris LaPierre
2020 年 1 月 31 日
Standard missing values depend on the data type:
If you need NaN, read in your data as numbers instead of strings.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!