how to add nan values to existing array?
Mostrar comentarios más antiguos
how to add nan values to existing array? i have 1X5 array.i want to change size to 10x5.
2 comentarios
You can try this
A = rand(1,5)
A = [A;NaN*(ones(9,5))]
the cyclist
el 3 de Nov. de 2021
You can do
nan(9,5)
rather than
NaN*(ones(9,5))
Respuestas (0)
Categorías
Más información sobre NaNs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!