Consider preallocating for speed
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
My lengthy program is littered with 'Consider preallocating for speed' suggestions for numerous variables.
What does a more experienced programmer do to circumvent this? Do I really need to allocate space at the start for every variable which this is suggested for?
Kind regards,
Tom
0 件のコメント
回答 (1 件)
per isakson
2014 年 2 月 13 日
Litter the program with lines like
A = zeros(25000, 10000);
2 件のコメント
per isakson
2014 年 2 月 13 日
編集済み: per isakson
2014 年 2 月 13 日
Dimension of left and right hand side must agree for existing variables(??)
Show a line, which causes this error.
The Mathworks server is choked?
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!