how to add empty in double array xxx = [ NaN 2 3 4 NaN]....Expected Value [ '' 2 3 4 '' ]
4 views (last 30 days)
Show older comments
xxx=[nan 2 3 4 NaN]
xxx =
NaN 2 3 4 NaN
K>> class(xxx)
ans =
'double'
0 Comments
Answers (1)
Rik
on 23 Dec 2021
That is not possible. You will either have to use a cell array, or remove the values entirely.
{'',2,3,4,''}
[2,3,4]
1 Comment
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!