MATLAB Answers

Replace -99 with NaN

조회 수: 9(최근 30일)
Megan Mirkhanian
Megan Mirkhanian 20 Jan 2020 20:42
답변: Steven Lord 21 Jan 2020 0:22
How do I repalce -99 values with NaN?

  댓글 수: 0

로그인 to comment.

답변(2개)

Stijn Haenen
Stijn Haenen 20 Jan 2020 20:45
x=[1 2 -99 3 4 -99 5 6 -99];
x(x==-99)=NaN;

  댓글 수: 0

로그인 to comment.


Steven Lord
Steven Lord 21 Jan 2020 0:22
Consider using the standardizeMissing function. The first example on that documentation page does exactly what you described.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by