Pre-allocating a memory for a Matrix

12 次查看(过去 30 天)
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?

回答(1 个)

KSSV
KSSV 2020-2-4
iwant = zeros(1,200) ;

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by