This video introduces branching control flow (if and else) and the relational operators (such as less than, equal to, etcetera) that are used to create boolean expressions to make those branching decisions in the code. All the code shown works perfectly in Octave as well as in Matlab. This video is part of a series comprising a complete introductory course in Matlab / Octave.
The full playlist is here: https://www.youtube.com/watch?v=NxHHtjB3UQQ&list=PLg3AZRFBfHLU0QyUzJ5TH1AkXeLIQ_zSm
Google drive link to all Matlab code: https://drive.google.com/drive/folders/1G2EKVimWhjRacAEMl_K9yMtcvAFf0xkm?usp=sharing
A direct link to the code used in this video is here: https://drive.google.com/file/d/1ny4wzdY-7NH284L0L-CltPJpFktZKyTm/view?usp=drive_link