Dec 03, 2024 | 180 words | 2 min read
13. MATLAB 2#
This module continues the exploration of MATLAB and revisits concepts introduced in Python that will now be used in MATLAB: logic, conditionals, and loops.
Topics Covered
Logic
Conditionals -
if
statementsfor
loopswhile
loops
Prerequisite Knowledge for this Module
To be successful in this module, you should already know:
How to perform mathematical operations in MATLAB
How to create and save MATLAB programs
Identify appropriate file and variable names in MATLAB
Learning Objectives and Course Outcomes
At the end of this module, you will be able to:
Write appropriate logic statements in MATLAB
Use conditional statements (
if
,elseif
,else
,end
) statements to allow program flowUse
for
loops andwhile
loops as repetition structures in MATLAB
These learning objectives are directly connected to the following Course Outcomes:
- CO 1.1:
Visually represent data and derive meaningful information from data.
- CO 2.1:
Contribute to team products and discussions.
- CO 3.1:
Communicate engineering concepts, ideas and decisions effectively and professionally in diverse ways such as written, visual and oral.
- CO 4.1:
Develop code solutions that address engineering questions and follow professional programming standards.
- CO 4.2:
Understand and implement basic and intermediate programming structures: sequential structures, selection structures, repetition structures, and nested structures.