how to write summation with limits?

조회 수: 12 (최근 30일)
rohail khan
rohail khan 2018년 4월 4일
답변: Birdman 2018년 4월 5일
hi, How can I write the following functions in matlab?
  댓글 수: 2
Birdman
Birdman 2018년 4월 5일
There are many ways. What have you tried so far?
rohail khan
rohail khan 2018년 4월 5일
Hi, I have tried the following
syms x
syms n
Mean=symsum(x,1,n)/n;
variance=symsum((x-Mean)^2,1,n)/n;

댓글을 달려면 로그인하십시오.

답변 (1개)

Birdman
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

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by