40 likes | 48 Views
Engr 6 Matlab Day 12 For Loops & Simulation. For Loops Iteration practice by hand SumSteps.m Simulation Concepts Savings.m scalar, indexed vector, append vector approaches Arc Tangent Cheer.m Looping on the string data Inventory Carts Homework Hints for Problem 12-2. For Loops.
E N D
Engr 6 Matlab Day 12For Loops & Simulation • For Loops • Iteration practice by hand • SumSteps.m • Simulation Concepts • Savings.m • scalar, indexed vector, append vector approaches • Arc Tangent • Cheer.m • Looping on the string data • Inventory Carts • Homework Hints for Problem 12-2
For Loops for loop_variable = vector_of_values statements end for Second = 10:-1:1 disp([ ‘Lift-off in ‘ , num2str(Second) , ‘ seconds.’ ]) end
Simulation Concept • Computes how something changes over time • To predict the future • To gain understanding of the processes An extremely common engineering task
Homework Hints • Problem 12-2: Account Balance with Investment Strategy • Show set-up • Make flowchart