Debian Codegraph @

tests/indent/matlab.m

raw
1 function y = f(x)
2 if x > 0
3 y = 1;
4 elseif x < 0
5 y = -1;
6 else
7 y = 0;
8 end
9 switch y
10 case 1
11 disp('one');
12 otherwise
13 disp('other');
14 end
15 try
16 risky();
17 catch
18 y = 0;
19 end
20 end