comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 mc
2
3 %% integrate x
4
5 a = ao(plist('xvals', 0:10, 'yvals', 0:10, 'yunits', 'm'));
6
7 ai = integrate(a)
8
9 %% Integrate cdata straigt-line
10
11 b = ao(0:10)
12 b.setYunits('N')
13 bi = integrate(b)
14
15 %% Integrate x^2
16
17 a = ao(plist('xyfcn', 'x.^2', 'x', 0:0.01:10, 'yunits', 'm'))
18
19 ai = integrate(a)
20
21 %% Integrate x^3
22
23 a = ao(plist('xyfcn', 'x.^3', 'x', 0:0.01:10, 'yunits', 'm'))
24
25 ai = integrate(a)