On Mon, Oct 03, 2011 at 12:09:58AM -1000, Rick T wrote:
> Greetings All
>
> I have a for loop that reads an array but I would like to vectorize it to
> see if will improve speed. at the moment the for loop takes about 7 mins any
> ideas to speed this up
>
> The array called inner_freq has three columns made up of
> amplitude,frequency, and phase
>
> for ii=1:1:length(inner_freq)-1
>
> aa_sig_rebuilt=inner_freq(ii,2)*cos(2*pi*t*inner_freq(ii,1)+inner_freq(ii,3));
> aa_sig_combined=aa_sig_combined+aa_sig_rebuilt;
> end;
I might be missing something here, but how about