MATLAB: Isletter true false

isletter 1 0

How does isletter work here. Is it the value 1 that makes it executable and the value 0 that makes it not excecute and go to else?

Best Answer

isletter is a function, which returns a logical value. The logical values, true and false, are displayed as 1 and 0, respectively by Matlab. Test by running
class( isletter('a'))
Thus, you may read "if true" execute the if-clause else execute the else-clause.