The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Preallocation in MATLAB R2009a
Replies: 30   Last Post: Apr 28, 2014 1:09 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Clemens

Posts: 6
Registered: 12/23/13
Re: Preallocation in MATLAB R2009a
Posted: Apr 28, 2014 4:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Still persistent in 2012a:

n = 5000;
tic;
r(n,n) = 0;
toc
clear all;
n = 5000;
tic;
r = zeros(n);
toc
clear all;
n = 5000;
tic
r = zeros(n,'double');
toc

Elapsed time is 0.001233 seconds.
Elapsed time is 0.078649 seconds.
Elapsed time is 0.000957 seconds.

64-bit.


Date Subject Author
8/5/09
Read Preallocation in MATLAB R2009a
rocwoods
8/5/09
Read Re: Preallocation in MATLAB R2009a
Qiming Liu
8/5/09
Read Re: Preallocation in MATLAB R2009a
rocwoods
8/5/09
Read Re: Preallocation in MATLAB R2009a
Bruno Luong
8/5/09
Read Re: Preallocation in MATLAB R2009a
us
8/5/09
Read Re: Preallocation in MATLAB R2009a
us
8/5/09
Read Re: Preallocation in MATLAB R2009a
Bruno Luong
8/5/09
Read Re: Preallocation in MATLAB R2009a
Yair Altman
8/5/09
Read Re: Preallocation in MATLAB R2009a
mike zander
8/5/09
Read Re: Preallocation in MATLAB R2009a
us
8/5/09
Read Re: Preallocation in MATLAB R2009a
mike zander
8/5/09
Read Re: Preallocation in MATLAB R2009a
us
8/5/09
Read Re: Preallocation in MATLAB R2009a
mike zander
8/5/09
Read Re: Preallocation in MATLAB R2009a
ngreco32@gmail.com
8/5/09
Read Re: Preallocation in MATLAB R2009a
Yair Altman
8/5/09
Read Re: Preallocation in MATLAB R2009a
Oleg
8/5/09
Read Re: Preallocation in MATLAB R2009a
Curious
8/5/09
Read Re: Preallocation in MATLAB R2009a
Curious
8/5/09
Read Re: Preallocation in MATLAB R2009a
Oleg
8/5/09
Read Re: Preallocation in MATLAB R2009a
Steven Lord
8/5/09
Read Re: Preallocation in MATLAB R2009a
Oleg
8/5/09
Read Re: Preallocation in MATLAB R2009a
Steven Lord
8/5/09
Read Re: Preallocation in MATLAB R2009a
Curious
8/5/09
Read Re: Preallocation in MATLAB R2009a
James Tursa
8/5/09
Read Re: Preallocation in MATLAB R2009a
James Tursa
8/5/09
Read Re: Preallocation in MATLAB R2009a
Bruno Luong
8/5/09
Read Re: Preallocation in MATLAB R2009a
James Tursa
8/6/09
Read Re: Preallocation in MATLAB R2009a
rocwoods
8/6/09
Read Re: Preallocation in MATLAB R2009a
grubin698
4/28/14
Read Re: Preallocation in MATLAB R2009a
Clemens
4/28/14
Read Re: Preallocation in MATLAB R2009a
Loren Shure

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.