I am having problems trying to compute the values for the two vector variables.
Each vector has 31 elements but my computations should be 31 *31 in dimensions.
If anyone could advise me on possible corrections that would be great.
Thanks in advance,
Courtney
I have included my program below:
function [Teval] = TInt2(x,t)
a=0.138e-6;
step=8.64e4;
n = length(t);
m = length(x);
i = 1;
j = 1;
global d;
global f;
while(i <= n)
d = t(1,i)*step
i = i+1;
end
while(j <= m)
f = x(1,j)
j = j+1;
end
limit = (f(1,:)./(2*sqrt(d(1,:).*a)))
eval(1,[]) = quadv(@Tfield,0,limit);
Teval = (2/sqrt(pi))*eval;
ploy3(Teval(:,1),f(:,1),d(:,1))
end