Consider preallocating for speed
이전 댓글 표시
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
답변 (1개)
per isakson
2014년 2월 13일
Litter the program with lines like
A = zeros(25000, 10000);
댓글 수: 2
Tom
2014년 2월 13일
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?
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!