/trunk/Examples/test-suite/octave/li_std_vector_runme.m
MATLAB | 11 lines | 9 code | 2 blank | 0 comment | 2 complexity | bfd87a2e04b85db0a333ecbdbf4995e4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- li_std_vector
- iv = IntVector(4);
- for i=0:3,
- iv(i) = i;
- endfor
- x = average(iv);
- if (x != 1.5)
- error("average failed");
- endif