필터 지우기
필터 지우기

Replacing NaN with blanks in a matrix

조회 수: 5 (최근 30일)
alok pandey
alok pandey 2020년 1월 6일
댓글: Ridwan Alam 2020년 1월 9일
I've a matrix which looks like the one attached. How do I replace NaNs with blank spaces without altering anything else?
Thanks in advance.

답변 (1개)

Ridwan Alam
Ridwan Alam 2020년 1월 6일
  댓글 수: 4
alok pandey
alok pandey 2020년 1월 9일
Thanks for the prompt reply Ridwan. So, if you open the attched mat file, you'll see that the matrix contain NaNs. I was wondering if it is possible to replace (remove) NaNs and have 'empty cells' instead. I tried fillmissing but as you said, we end up with a 'string' which I don't want.
What I was wondering is if we can we can use something like:
Phase_data(isnan(Phase_data))='empty cells';
Sorry, I'm stuck.
Ridwan Alam
Ridwan Alam 2020년 1월 9일
I was wondering if it is possible to replace (remove) NaNs and have 'empty cells' instead.
Nope, I don't think that's possible. Sorry.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by