creating an empty cell in an array
Ältere Kommentare anzeigen
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 Kommentare
Akshay Malav
am 21 Jun. 2019
Can you tell me what version of matlab you are using
Ahmed Abdulla
am 21 Jun. 2019
madhan ravi
am 21 Jun. 2019
Can’t you just ignore NaN values using isnan() ?
madhan ravi
am 21 Jun. 2019
a = [1,2,NaN,5,NaN]
b = [3,4,5,1,NaN]
result = ???
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!