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.

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)

for J = 1
mean(X), var(X), std(X)
end

2 Comments

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 ].
x=[-9,-7,-5,-1,2,4,6,8,10 ]
for J = 1
mean(X), var(X), std(X)
end

Sign in to comment.

Categories

Asked:

on 5 May 2012

Community Treasure Hunt

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

Start Hunting!