This video introduces the logical operators of "and" and "or" in Matlab and Octave, and then does a moderately deep dive into short-circuiting. All the code shown works in Octave as well as 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