How to implement triple summation?
4 次查看(过去 30 天)
显示 更早的评论
3 个评论
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?
回答(1 个)
Matt J
2021-4-9
编辑:Matt J
2021-4-9
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!