I have matrix with some elements NaN. I want to replace them with 1. how to do it

回答 (1 件)

KSSV
KSSV 2016 年 11 月 11 日

2 投票

Let K be your array which has nan.
K(isnan(K))=1;

カテゴリ

タグ

質問済み:

2016 年 11 月 11 日

回答済み:

2016 年 11 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by