how to write summation with limits?

15 ビュー (過去 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 Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by