0% found this document useful (0 votes)
4 views6 pages

Day10_Loop_Example_v2

The document outlines a strategy for solving MATLAB loop problems, emphasizing the importance of breaking down the question, writing it out, and typing it in MATLAB. It suggests using flow charts and debugging techniques such as break-points to enhance understanding and accuracy. The content is derived from a textbook and is intended for educational purposes at York University.

Uploaded by

tatopla20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

Day10_Loop_Example_v2

The document outlines a strategy for solving MATLAB loop problems, emphasizing the importance of breaking down the question, writing it out, and typing it in MATLAB. It suggests using flow charts and debugging techniques such as break-points to enhance understanding and accuracy. The content is derived from a textbook and is intended for educational purposes at York University.

Uploaded by

tatopla20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Example of a Loop Problem

Dr. James Andrew Smith, PhD PEng

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

From Ch. 4 of the 2012 ed of the Stormy Attaway textbook

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
Most well-written textbook problems are written
so that you should use the following strategy:
• Look at each sentence or sentence fragment
• Identify what aspect of MATLAB would fit the
Step 1: Break best
down the • Use Google for keywords
question
• Using a pencil, write it down.
• Write down the “script” (it’s usually a script) on
paper
• Draw a flow chart, if it helps

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

Step 1: Break
down the
question

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
Step 1: Break
down the
question

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

Step 1: Break
down the
question

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
Step 1: Break
down the
question

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

Step 1: Break
down the
question

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
Step 2:
Write it out
on paper

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

Step 3:
Type it up in MATLAB

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
Step 4:
“Debug” using break-points

Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University

You might also like