How to make a summation series with a dataset
2 ビュー (過去 30 日間)
古いコメントを表示
Thijs Van Dommelen
2021 年 9 月 18 日
コメント済み: Thijs Van Dommelen
2021 年 9 月 24 日
Hi, i'd like to know how i can implement a dataset in a summation like this
, where x_i is a number out of a 1000x1 table and Vs is known
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/742774/image.png)
0 件のコメント
採用された回答
Srijith Kasaragod
2021 年 9 月 21 日
The following function shows one possible approach to solve this problem . I assume that the dataset contains 1000x1 double values as a table.
function res= f(dataset, Vs)
y=dataset.var; %var is name of the column containing elements
n=length(y);
res= sqrt(sum((y-Vs).^2)./n);
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!