필터 지우기
필터 지우기

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 CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by