Question is ternary operation valid as i am not able to find any document related to it online. And i also find out that ternary is not possible in MATL