Matt J
Posts:
4,988
Registered:
11/28/09
|
|
Re: Temporary output when assigning into slices?
Posted:
Jan 24, 2013 11:05 AM
|
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kdpuef$118$1@newscl01ah.mathworks.com>... > > > There is no temporal memory allocation according to my test (2012B). =============
Then that's pretty fancy and new. I definitely see a difference in R2012a:
N=1e7; M=1; B=rand(M,N); C=rand(N,10);
tic; B*C(:,1); toc; %Elapsed time is 0.043724 seconds.
z=C(:,1); tic B*z; toc %Elapsed time is 0.011419 seconds.
|
|