Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Selection Statements > The is Functions in MATLAB

3.7. The is Functions in MATLAB

There are a lot of functions that are built into MATLAB that test whether or not something is true; these function names begin with the word is. Since these functions are frequently used in if statements, they are introduced in this chapter. For example, the function called isletter returns logical 1 if the argument is a letter of the alphabet, or 0 if it is not:

>> isletter('h')
ans =
      1
>> isletter('4')
ans =
      0


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint