1 / 4

Engr 6 Matlab Day 12 For Loops & Simulation

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.

pmason
Download Presentation

Engr 6 Matlab Day 12 For Loops & Simulation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. For Loops for loop_variable = vector_of_values statements end for Second = 10:-1:1 disp([ ‘Lift-off in ‘ , num2str(Second) , ‘ seconds.’ ]) end

  3. Simulation Concept • Computes how something changes over time • To predict the future • To gain understanding of the processes An extremely common engineering task

  4. Homework Hints • Problem 12-2: Account Balance with Investment Strategy • Show set-up • Make flowchart

More Related