Pre-allocating a memory for a Matrix
显示 更早的评论
How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?
回答(1 个)
KSSV
2020-2-4
iwant = zeros(1,200) ;
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!