Day10_Loop_Example_v2
Day10_Loop_Example_v2
Copyright James Andrew Smith & others. You do not have permission to upload or share this document outside of York University
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