Pre-allocating a memory for a Matrix

1 view (last 30 days)
Jhie Ton
Jhie Ton on 4 Feb 2020
Commented: Stephen23 on 4 Feb 2020
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?

Answers (1)

KSSV
KSSV on 4 Feb 2020
iwant = zeros(1,200) ;

Categories

Find more on Multidimensional Arrays 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!