40 likes | 50 Views
Learn iteration practice using for loops in MATLAB for time-series analysis, simulation concepts, and predicting future outcomes. Explore savings and investment strategies, while gaining insights into changing processes over time. Get homework hints for practical implementation.
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