How to make a summation series with a dataset
조회 수: 2 (최근 30일)
이전 댓글 표시
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
, where x_i is a number out of a 1000x1 table and Vs is known댓글 수: 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에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!