Blog Archive

Saturday, November 5, 2011

Speedup tricks

Speedup tricks: "tic
B = zeros(30000,1); % Preallocate B with the zeros command.
for i = 1:30000
B(i) = i;
end
with = toc
ratio = without / with"

'via Blog this'

No comments:

Post a Comment