From: JUN on
hi
I have a probleme about intergal

I did the code

T=0.05;
t=-0.05:0.0001:0.05;
lamda=0.0005;
x = zeros(1,length(t));
y = x;

x= poissrnd(lamda, length(t),1);
y= poissrnd(lamda, length(t),1);

syms u z;
f=mean(x(z).*y(z+u))-mean(x(z)).*mean(y(z+u));
C=int(f,z,t-T,t)

but I can not find C , so please help me!!!
From: Walter Roberson on
JUN wrote:
> hi I have a probleme about intergal
>
> I did the code
> T=0.05;
> t=-0.05:0.0001:0.05;
> lamda=0.0005;
> x = zeros(1,length(t));
> y = x;
> x= poissrnd(lamda, length(t),1);
> y= poissrnd(lamda, length(t),1);
>
> syms u z;
> f=mean(x(z).*y(z+u))-mean(x(z)).*mean(y(z+u));
> C=int(f,z,t-T,t)
>
> but I can not find C

t is a vector, but int() is restricted to scalars for its upper and lower limits.

http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/int.html