Pre-allocating a memory for a Matrix
Show older comments
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?
Answers (1)
KSSV
on 4 Feb 2020
iwant = zeros(1,200) ;
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!