O'Reilly logo

MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] by Manoj Kumar Sharma, Ashok Kumar Goel, Raj Kumar Bansal

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

7.3. Branches Control Structures

The branch control structures allow selecting and executing specific blocks of statements out of many statement blocks depending upon the condition. These include different types of if structures, switch control structure and so on. The if structure is a conditional control structure which allows some group of statements to be executed only if the given condition is true.

7.3.1. if Control Structures

In if control structure, a group of statements are executed only if the condition is true. The following are the different forms of if control structures:

7.3.1.1. if Structure

This is the simplest form of if control structure. It has only ...

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