A script file that reads in a set of measurements stored in x and calculates the mean or average, variance and standard deviation on the input data set.

6 vues (au cours des 30 derniers jours)
I have to use for loop to solve this but I have no idea where to start. Can someone please point me in the right direction or give me some tips to solve this? Would be really appreciated.

Réponses (1)

Walter Roberson
Walter Roberson le 5 Mai 2012
for J = 1
mean(X), var(X), std(X)
end
  2 commentaires
Grimm
Grimm le 5 Mai 2012
Thanks for taking the time to respond but I don't understand. After am finished am supposed to check my code using this input vector
x=[-9,-7,-5,-1,2,4,6,8,10 ].
Walter Roberson
Walter Roberson le 5 Mai 2012
x=[-9,-7,-5,-1,2,4,6,8,10 ]
for J = 1
mean(X), var(X), std(X)
end

Connectez-vous pour commenter.

Catégories

En savoir plus sur Numerical Integration and Differential Equations 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!

Translated by