Mercurial > hg > ltpda
diff m-toolbox/test/test_ao_integrate.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/test_ao_integrate.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,25 @@ +mc + +%% integrate x + +a = ao(plist('xvals', 0:10, 'yvals', 0:10, 'yunits', 'm')); + +ai = integrate(a) + +%% Integrate cdata straigt-line + +b = ao(0:10) +b.setYunits('N') +bi = integrate(b) + +%% Integrate x^2 + +a = ao(plist('xyfcn', 'x.^2', 'x', 0:0.01:10, 'yunits', 'm')) + +ai = integrate(a) + +%% Integrate x^3 + +a = ao(plist('xyfcn', 'x.^3', 'x', 0:0.01:10, 'yunits', 'm')) + +ai = integrate(a)