PageRenderTime 31ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/inout_runme.m

#
MATLAB | 27 lines | 21 code | 6 blank | 0 comment | 5 complexity | 32bf3e0f8f30b5ecee92e9b0b1c9943d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. inout
  2. a = inout.AddOne1(1);
  3. if (a != 2)
  4. error
  5. endif
  6. a = inout.AddOne3(1,1,1);
  7. if (a != [2,2,2])
  8. error
  9. endif
  10. a = inout.AddOne1p((1,1));
  11. if (a != (2,2))
  12. error
  13. endif
  14. a = inout.AddOne2p((1,1),1);
  15. if (a != [(2,2),2])
  16. error
  17. endif
  18. a = inout.AddOne3p(1,(1,1),1);
  19. if (a != [2,(2,2),2])
  20. error
  21. endif