How to implement triple summation?
古いコメントを表示

3 件のコメント
darova
2021 年 3 月 17 日
DO you have any attempts?
Jan
2021 年 3 月 17 日
What are h_p? What is the meaning of h_p^(q, p-q)? What is X*? Do you want a symbolical or numerical summation?
Usha Sree Katikala
2021 年 4 月 9 日
編集済み: Matt J
2021 年 4 月 9 日
回答 (1 件)
Well, for each fixed p and q, the inner sum over m is just a discrete convolution. So, perhaps the best solution is to do a double loop over p and q and add up conv() output.
r=0;
for p=1:P
for q=0:p
r=r+conv(____,shape)
end
end
One advantage to this approach is that you can use conv's 3rd argument shape to deal with array edge conditions.
カテゴリ
ヘルプ センター および File Exchange で Simulation, Tuning, Visualization, and MIDI についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!