Effacer les filtres
Effacer les filtres

Pre-allocating a memory for a Matrix

1 vue (au cours des 30 derniers jours)
Jhie Ton
Jhie Ton le 4 Fév 2020
Commenté : Stephen23 le 4 Fév 2020
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?

Réponses (1)

KSSV
KSSV le 4 Fév 2020
iwant = zeros(1,200) ;

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by