Octave Programming Chapter 9 Part 1 - Logical and Relational Operators.

Опубликовано: 10 Январь 2025
на канале: Hanshaw Virtual University
1,022
24

In the last video, I introduced logical and relational operators and talked about how they work. The outputs of logical and relational operators are LOGICAL values – they are a special TYPE of data in OCTAVE. So, if one of the relational or logical operators outputs a logical value, OCTAVE knows that the value is LOGICAL and treats is differently from numerical values in some ways. One of these ways is when a logical value is used as an array index. Using logical values as array indices can allow you to extract elements of an array which meet certain criteria, which simplifies the analysis process.

Support us on Patreon:   / hvu