- 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에서 Cell Arrays에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

