how to add nan values to existing array?
Ältere Kommentare anzeigen
how to add nan values to existing array? i have 1X5 array.i want to change size to 10x5.
2 Kommentare
You can try this
A = rand(1,5)
A = [A;NaN*(ones(9,5))]
the cyclist
am 3 Nov. 2021
You can do
nan(9,5)
rather than
NaN*(ones(9,5))
Antworten (0)
Kategorien
Mehr zu NaNs 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!