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 views (last 30 days)
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.

Answers (1)

Walter Roberson
Walter Roberson on 5 May 2012
for J = 1
mean(X), var(X), std(X)
end
  2 Comments
Grimm
Grimm on 5 May 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 ].

Sign in to comment.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!