フィルターのクリア

Quick way to change complex number into NaN

24 ビュー (過去 30 日間)
Qian
Qian 2012 年 11 月 13 日
If I have a matrix of A=[1 2 ; 2+i 3] I want to make it into A=[1 2; NaN 3] Is there anyway like using isnan function to do this? Thanx!

採用された回答

Teja Muppirala
Teja Muppirala 2012 年 11 月 13 日
A(imag(A)~=0) = nan;
  1 件のコメント
Qian
Qian 2012 年 11 月 13 日
Thanx!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by