Date: Dec 9, 2012 2:56 PM
Author: Rob
Subject: Syms Error

I am wanting to row reduce a matrix that was combined with a matrix that was created using integration with the syms s function.  However, when I attempt to row reduce I get this error: 

Error using sym/rref
Too many input arguments.

Is there a way to avoid this error by using a different integration technique? Below is my code for that relates to this question. Thank you in advance for any advice or suggestions.

%Source Lines
syms s
i=0;
i=1+i:n;
xxu(i)=x(1,i)+sin(Phi(1,:)).*s;
xxl(i)=x(2,i)+sin(Phi(1,:)).*s;
zzu(i)=z(1,i)+cos(Phi(2,:)).*s;
zzl(i)=z(2,i)+cos(Phi(2,:)).*s;
xx=[xxu;xxl];
zz=[zzu;zzl];

%Combine Upper and Lower Matricies

x=[x(1,:) x(2,:)];
z=[z(1,:) z(2,:)];
xmid=[xmid(1,:) xmid(2,:)];
zmid=[zmid(1,:) zmid(2,:)];
Phi=[Phi(1,:) Phi(2,:)];
Theta=[Theta(1,:) Theta(2,:)];
L=[L(1,:) L(2,:)];
xx=[xx(1,:) xx(2,:)];
zz=[zz(1,:) zz(2,:)];



%Function to be integrated and Integration
for i=1:N;
for j=1:N;
X(i,j)=(xmid(i)-xx(j));
Z(i,j)=(zmid(i)-xx(j));
F(i,j)=((X(i,j)).*cos(Theta(i))+(Z(i,j)).*sin(Theta(i)))./((X(i,j)).^2+(Z(i,j)).^2);
I(i,j)=int(F(i,j),s,0,L(j))
vpa(I)
end
end

I = round(I*1e4) / 1e4;

Equalmatrix=[V*sin(Theta(1)-angle);V*sin(Theta(2)-angle); V*sin(Theta(3)-angle); V*sin(Theta(4)-angle); V*sin(Theta(5)-angle); V*sin(Theta(6)-angle); V*sin(Theta(7)-angle); V*sin(Theta(8)-angle)];

CP=rref(I,Equalmatrix);