how to write summation with limits?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi, How can I write the following functions in matlab?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171827/image.jpeg)
2 comentarios
Respuestas (1)
Birdman
el 5 de Abr. de 2018
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 comentarios
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!