Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Syms Error
Replies: 2   Last Post: Dec 10, 2012 2:40 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Rob

Posts: 1
Registered: 12/9/12
Syms Error
Posted: Dec 9, 2012 2:56 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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);


Date Subject Author
12/9/12
Read Syms Error
Rob
12/9/12
Read Re: Syms Error
Steven Lord
12/10/12
Read Re: Syms Error
Nasser Abbasi

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.