ISTRUE
Note that this reference documentation is identical to the help that is displayed in MATLAB when you type “help istrue”.
ISTRUE converts an input argument like "yes/no", "true/false" or "on/off" into a boolean. If the input is boolean, then it will remain like that.