Summation with a vector
显示 更早的评论
Hi guys I'm new here and I'm just learning Matlab for signal processing.
I'm trying to solve this summation:

I've tried using sum:
>> n=[-10:10];
>> x=zeros(1,length(n));
>> sum(x(n==i),i=1..10);
but I'm getting a not a valid target assignment error..
I also saw symsum but I don't know how to implement that on computing a vector.
Please help me, and thanks in advance. P.S. I'm using MATLAB 7.12.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!