MATLAB LanguageUsing functions with logical output