Consider preallocating for speed
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
per isakson
am 13 Feb. 2014
Litter the program with lines like
A = zeros(25000, 10000);
2 Kommentare
per isakson
am 13 Feb. 2014
Bearbeitet: per isakson
am 13 Feb. 2014
Dimension of left and right hand side must agree for existing variables(??)
Show a line, which causes this error.
The Mathworks server is choked?
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!