replace 1 in place of NaN

1 回表示 (過去 30 日間)
Jay Hanuman
Jay Hanuman 2016 年 11 月 11 日
回答済み: KSSV 2016 年 11 月 11 日
I have matrix with some elements NaN. I want to replace them with 1. how to do it

回答 (1 件)

KSSV
KSSV 2016 年 11 月 11 日
Let K be your array which has nan.
K(isnan(K))=1;

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by