/trunk/Examples/test-suite/octave/inout_runme.m
# · MATLAB · 27 lines · 21 code · 6 blank · 0 comment · 5 complexity · 32bf3e0f8f30b5ecee92e9b0b1c9943d MD5 · raw file
- inout
- a = inout.AddOne1(1);
- if (a != 2)
- error
- endif
- a = inout.AddOne3(1,1,1);
- if (a != [2,2,2])
- error
- endif
- a = inout.AddOne1p((1,1));
- if (a != (2,2))
- error
- endif
- a = inout.AddOne2p((1,1),1);
- if (a != [(2,2),2])
- error
- endif
- a = inout.AddOne3p(1,(1,1),1);
- if (a != [2,(2,2),2])
- error
- endif