Pre-allocating a memory for a Matrix

How can I pre-allocate a memory for a matrix? for example, a 1x200 matrix?

回答 (1 件)

KSSV
KSSV 2020 年 2 月 4 日

1 投票

iwant = zeros(1,200) ;

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

タグ

質問済み:

2020 年 2 月 4 日

コメント済み:

2020 年 2 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by