フィルターのクリア

Maximum variable size allowed by the program is exceeded.

1 回表示 (過去 30 日間)
mania online
mania online 2016 年 3 月 27 日
編集済み: Azzi Abdelmalek 2016 年 3 月 27 日
i tried this A =reshape( (zeros(vsize*vsize*2)),[],2); but getting Error using zeros Maximum variable size allowed by the program is exceeded. but when i tried A= reshape( (blanks(vsize*vsize*2)),[],2); is fine here vsize is 256

採用された回答

Walter Roberson
Walter Roberson 2016 年 3 月 27 日
blanks(vsize*vsize*2) creates a 1 x vsize*vsize*2 vector of characters.
zeros(vsize*vsize*2) creates a vsize*vsize*2 by vsize*vsize*2 array of double precision numbers. If you want a vector instead then you need to specify the "1", such as zeros(1,vsize*vsize*2)

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 27 日
編集済み: Azzi Abdelmalek 2016 年 3 月 27 日
you can check that blanks(n) takes less memory then zros(4) a=blanks(4) b=zeros(4) whos a whos b

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by