PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 11 lines | 9 code | 2 blank | 0 comment | 3 complexity | bfd87a2e04b85db0a333ecbdbf4995e4 MD5 | raw file
 1li_std_vector
 2
 3iv = IntVector(4);
 4for i=0:3,
 5    iv(i) = i;
 6endfor
 7x = average(iv);
 8
 9if (x != 1.5)
10  error("average failed");
11endif