Week 4: Introduction to MATLAB Programming
User Defined Functions
o functions that you write
o you write the function definition, which is saved in an M-file
o then, use the function in the same way as a built in function
call it using the function name
Week 6: Selection Statements
Recall Relational Expressions
o MATLAB relational operators
greater than: >
less than: <
greater than or equals: >=
less than or equals: <=
equality: =
inequality: ~=
o the result from these operators returns a logical
Week 9: Basic Statistics, Sets, Sorting, and Indexing
Statistics
o built in functions to do statistical analyses
mean: the average of numbers
standard deviation (std) and variance (var): determine the spread of the
data
mode: the number that appears mo
Week 10: MATLAB Programs
Types of Functions
o functions that calculate and return one value
o functions that calculate and return more than one value
o functions that accomplish a task, such as printing, without returning any values
Generic Function Defin
Week 5: Introduction to MATLAB Programming
User Defined Functions
o functions that you write
o you write the function definition, which is saved in an M-file
o then, use the function in the same way as a built in function
call it using the function name
Week 3: Introduction to MATLAB Programming
Algorithms
o an algorithm is the sequence of steps needed to solve a problem
o top-down design approach to programming
break a solution down into steps, then further refine each step
o a modular program consists
Week 2: Vectors and Matrices
Matrices
o a matrix is used to store a set of values of the same type
these stored values are known as elements
o a matrix with m rows and n columns has dimensions m x n
o the term array is used to generically refer to a matr
Week 8: Loop Statements and Vectorizing Code
for Loops
o used as counting loops
o repeat an action a specified number of times
o an iterator or loop variable specifies the number of times the action should be
repeated
o general form of a for loop
for loop
Week 7: Loop Statements and Vectorizing Code
for Loops
o used as counting loops
o repeat an action a specified number of times
o an iterator or loop variable specifies the number of times the action should be
repeated
o general form of a for loop
for loop