how to write this summation in matlab form ∑_(u=1)^(su-2)?
7 次查看(过去 30 天)
显示 更早的评论
in this summation..the lower limit is u=1 and the upper limit is su-2. how can i write this summation limits in matlab form?
1 个评论
Greg Heath
2012-10-8
Please write the complete mathematical command that is to be translated to MATLAB code
采纳的回答
Walter Roberson
2012-10-8
If you have the symbolic toolbox, use symsum()
syms u
symsum(YourExpression, u, 1, su-2)
If you do not have the symbolic toolbox, then either use a for loop that accumulates the results, or else use an expression that calculates each term independently and then sum() them together. You could also consider using arrayfun()
arrayfun(@(u) YourExpression, 1:su-2)
5 个评论
Rajnish kumar
2015-2-16
But symsum shows error if we have summation of h(k)x(n-k) for k=1 to L; let L=10; Undefined function 'symsum' for input arguments of type 'double'.
Error: y(n)=symsum(h(r).*x(n-r),r,1,L);
更多回答(1 个)
Sudhanshu Gaurav
2021-4-7
编辑:David
2021-4-7
min K k=1 n +1 i=0 n +1 j=0 cijxijk
1 个评论
Walter Roberson
2021-4-7
编辑:Walter Roberson
2021-4-7
I am not sure why your post did not show up; I will ask staff.
You posted
min K k=1 n +1 i=0 n +1 j=0 cijxijk
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!