O'Reilly logo

Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition by Stormy Attaway

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Selection Statements

Contents

Key Terms

selection statements

branching statements

condition

relational expression

Boolean expression

logical expression

relational operators

logical operators

truth table

action

temporary variable

error-checking

nesting statements

cascading if-else

“is” functions

In the scripts and functions we've seen thus far, every statement was executed in sequence. That is not always desirable, and in this section we'll see how to make choices as to whether statements are executed or not, and how to choose between or among statements. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required