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.
Show older comments
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
on 5 May 2012
for J = 1
mean(X), var(X), std(X)
end
2 Comments
Grimm
on 5 May 2012
Walter Roberson
on 5 May 2012
x=[-9,-7,-5,-1,2,4,6,8,10 ]
for J = 1
mean(X), var(X), std(X)
end
Categories
Find more on Variables 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!