How to make a summation series with a dataset
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Thijs Van Dommelen
le 18 Sep 2021
Commenté : Thijs Van Dommelen
le 24 Sep 2021
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
0 commentaires
Réponse acceptée
Srijith Kasaragod
le 21 Sep 2021
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!