- Can you provide example E, lagsT, and d?
- Is the E variable preallocated?
Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Can this loop be sped up significantly?
2 ビュー (過去 30 日間)
古いコメントを表示
I'm at a loss as to how I can speed up this loop since each time-step is dependent on the result of the previous time-step. Can this be vectorized with some nifty approach?
for t = startingT:T
data = [d(t-lagsT)' E(t - lagsTE)'];
E(t) = data * coefficients;
end
Thank you,
Greg
3 件のコメント
回答 (1 件)
Muthu Annamalai
2015 年 8 月 5 日
編集済み: Muthu Annamalai
2015 年 8 月 5 日
It seems like you are trying to calculate a 2-tap FIR filter (if your lagsTE = 1) or lagsTE+1 tap FIR filter with lagsTE-2 coefficients set to 0.
Maybe you could do this in the frequency domain without carrying out the convolution in the time domain.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!