Pre-allocating a memory for a Matrix

17 Ansichten (letzte 30 Tage)
Jhie Ton
Jhie Ton am 4 Feb. 2020
Kommentiert: Stephen23 am 4 Feb. 2020
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?

Antworten (1)

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

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by