creating an empty cell in an array
이전 댓글 표시
i have an array most made up of numbers and some are NaN i would like to make the NaN cells empty because i have a plotting function that doesnt accept NaN and when i assign it to 0 it affects the resulting graph, so im not really sure of how to make it blank with no numerical value
댓글 수: 4
Akshay Malav
2019년 6월 21일
Can you tell me what version of matlab you are using
Ahmed Abdulla
2019년 6월 21일
madhan ravi
2019년 6월 21일
Can’t you just ignore NaN values using isnan() ?
madhan ravi
2019년 6월 21일
a = [1,2,NaN,5,NaN]
b = [3,4,5,1,NaN]
result = ???
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!