Adding+Variance+For-loop question

1 view (last 30 days)
Josh Kim
Josh Kim on 10 Feb 2015
Commented: per isakson on 10 Feb 2015
How can I create a MATLAB for-loop function that adds its values and find its variance?.
(I know you need to use a form of instruction "x+1" by incrementing it until 20")
Start with 10 samples
1st set [1 2 3 4 5 6 7 8 9 10 ] = Find variance (Display "Var1")?
2nd set [1 2 3 4 5 6 7 8 9 10 11] = Find variance (Display "Var2")?
3rd set [1 2 3 4 5 6 7 8 9 10 11 12] = Find variance (Display "Var3")?
...........
Until 20 sets. Output, display variance of each set??

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!