how to write summation with limits?
17 次查看(过去 30 天)
显示 更早的评论
hi, How can I write the following functions in matlab?

2 个评论
回答(1 个)
Birdman
2018-4-5
Try this:
syms mu variance x(i)
n=5;% you can change it
mu=symsum(x,i,1,n)/n
variance=symsum((x-mu).^2,i,1,n)/n
0 个评论
另请参阅
类别
在 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!