how to write summation with limits?
조회 수: 12 (최근 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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!