how to write summation with limits?

hi, How can I write the following functions in matlab?

2 Kommentare

Birdman
Birdman am 5 Apr. 2018
There are many ways. What have you tried so far?
Hi, I have tried the following
syms x
syms n
Mean=symsum(x,1,n)/n;
variance=symsum((x-Mean)^2,1,n)/n;

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Birdman
Birdman am 5 Apr. 2018

0 Stimmen

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

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 4 Apr. 2018

Beantwortet:

am 5 Apr. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by