how to add nan values to existing array?
Afficher commentaires plus anciens
how to add nan values to existing array? i have 1X5 array.i want to change size to 10x5.
2 commentaires
You can try this
A = rand(1,5)
A = [A;NaN*(ones(9,5))]
the cyclist
le 3 Nov 2021
You can do
nan(9,5)
rather than
NaN*(ones(9,5))
Réponses (0)
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!