How to implement triple summation?
Mostrar comentarios más antiguos

3 comentarios
darova
el 17 de Mzo. de 2021
DO you have any attempts?
Jan
el 17 de Mzo. de 2021
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
el 9 de Abr. de 2021
Editada: Matt J
el 9 de Abr. de 2021
Respuestas (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.
Categorías
Más información sobre Simulation, Tuning, Visualization, and MIDI en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!