Hi all, I have a 294x1 matrix, and I want to convert all the NaNs to 1.
If anybody could assist me I would be grateful.
Thanky ou.

 채택된 답변

Matt Kindig
Matt Kindig 2012년 7월 18일

2 개 추천

Let M be your matrix.
M(isnan(M))=1;

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 NaNs에 대해 자세히 알아보기

태그

질문:

2012년 7월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by