MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Is there any way to vectorize/ speed up calculatio... 

Subject: Is there any way to vectorize/ speed up calculation? From: Pete sherer Date: 30 Nov, 2012 19:35:08 Message: 1 of 6 
Hi, 
Subject: Is there any way to vectorize/ speed up calculation? From: Roger Stafford Date: 1 Dec, 2012 00:49:09 Message: 2 of 6 
"Pete sherer" wrote in message <k9b1pc$cvq$1@newscl01ah.mathworks.com>... 
Subject: Is there any way to vectorize/ speed up calculation? From: Pete sherer Date: 1 Dec, 2012 02:42:11 Message: 3 of 6 
nThres is actually 1by3 array. It's the length( uniqCol1) that is large, about 500k. Each block has about 45 subblocks, so the total number of rows is about 22.5M rows. 
Subject: Is there any way to vectorize/ speed up calculation? From: Pete sherer Date: 1 Dec, 2012 04:49:13 Message: 4 of 6 
Thanks Roger. I tried colon operator and it works amazingly fast since I don't need to find indx in every loop. 
Subject: Is there any way to vectorize/ speed up calculation? From: Roger Stafford Date: 1 Dec, 2012 05:15:13 Message: 5 of 6 
"Pete sherer" wrote in message <k9bqq3$pst$1@newscl01ah.mathworks.com>... 
Subject: Is there any way to vectorize/ speed up calculation? From: Bruno Luong Date: 1 Dec, 2012 07:32:14 Message: 6 of 6 
Try this 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.