From: Nick N on
Dear all,

I am new to this forum & Matlab. Just wondering if Matlab supports this kind of statement like in C programming:

(expr1) ? expr2:expr3

This is equivalent to
if (expr1)
expr2;
else
exp3;
end;

Any help would be much appreciated. Thanks!
From: dpb on
Nick N wrote:
....

> ... wondering if Matlab supports this kind of statement like in C programming:
>
> (expr1) ? expr2:expr3
....

nope, ML is not C (nor particularly "C-like")

--