Lecture (LM8) Matlab 8 -- Logical Operators
- Due Nov 7, 2014 by 11:59pm
- Points None
This lecture discusses decision making in MATLAB programs using IF/THEN/ELSE and other logical functions. These operators allow you to change what processing the program does according to the data. An example would be deciding what to do in the program according to what the user inputs, as in what option in a program the user is selecting.
Watch this Video before class:
Matlab - Chapter 8a Links to an external site. Relational and Logical Operators and the Find Function - 17:26 min
Matlab - Chapter 8c Links to an external site. If structures (Uses an older version of MATLAB) - 26:05 min Links to an external site.
Power Point Links to an external site.to take notes on
Additional resources for chapter 8:
ECE1250S14_LectM5.txt Download ECE1250S14_LectM5.txt Lecture 5 on Matlab
Matlab - Chapter 8b Links to an external site. An example using find - the sinc function (Uses an older version of MATLAB ) - 12:15 min
In Class:
ECE1250S14_M8LectProbs.pdf Download ECE1250S14_M8LectProbs.pdf (problems without notes)
How d/dt becomes multiplication by jw in frequency domain, and
example of node-voltage solution for impedance circuit:
ECE1250S14_M8LectProbsBig.pdf Download ECE1250S14_M8LectProbsBig.pdf (handwritten node-v setup, ignore
next-to-last (incomplete) Matlab statement)
ECE1250S14_M8LectProbsBig2.pdf Download ECE1250S14_M8LectProbsBig2.pdf (Matlab for node-v)