Chapter 5

Logical vectors

The objectives of this chapter are to enable you to:

ent Understand logical operators more fully And to introduce you to:

ent Logical vectors and how to use them effectively in a number of applications

ent Logical functions

This chapter introduces a most powerful and elegant feature of MATLAB, viz., the logical vectors. The topic is so useful and, hence, important that it deserves a chapter of its own.

Try these exercises on the command ...

Get Essential MATLAB for Engineers and Scientists, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.