Te refieres a estructuras con ifs?
if expression1
statements1
...
elseif expression2
statements2
...
else
statements3
...
end
Por ejemplo:
if m == n
a(m,n) = 3;
elseif abs(m-n) == 3
a(m,n) = 1;
else
a(m,n) = 0;
end
------------------------------
Te refierea a estructuras con switch-case?
switch switch_expr
case case_expr
statement
...
case {case_expr1,case_expr2,case_expr3,...}
statement
...
otherwise
statement
...
end
Por ejemplo:
color = 'rose';
switch lower(color)
case {'red', 'light red', 'rose'}
disp('color is red')
case 'blue'
disp('color is blue')
case 'white'
disp('color is white')
otherwise
disp('Unknown color.')
end