matlab: assert needs logical input