フィルターのクリア

How to make NaN data

1 回表示 (過去 30 日間)
hj lee
hj lee 2020 年 6 月 11 日
コメント済み: hj lee 2020 年 6 月 12 日
Hello,
here is the data.
a = [-2 -1 2 3]
b = [1 2 3 4]
c=a.*b
c = [-2 -2 6 12]
right?
but I want to make the NaN value to the negative c data..
in this case, c = [NaN NaN 6 12]
How to do that?
values of b can vary depending on my initial condition, so I need the code which change to NaN automatically.

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 11 日
  1 件のコメント
hj lee
hj lee 2020 年 6 月 12 日
Thank you very much!!!

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

その他の回答 (0 件)

カテゴリ

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