Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Matlab I am getting this error.. Warning: The system is rank-deficient. Solut

ID: 3861102 • Letter: I

Question

In Matlab I am getting this error..

Warning: The system is rank-deficient. Solution is not unique.
> In symengine
In sym/privBinaryOp (line 973)
In (line 365)
In HTexam (line 18)
>>

This is my code:

clear, clc
gen=0;
x=0.005;
k=386;
h=40;
Tinf=30;
T0=100;
D=0.0025;
A=(3.141592*(D^2))/4;
p=3.141592*D;
syms T1 T2 T3 T4 T5 T6
eqns=[(k*A*(T0-T1)/x+k*A*(T2-T1)/x+h*A*(Tinf-T1)==0),...
((k*A*(T1-T2)/x+k*A*(T3-T2)/x+h*A*(Tinf-T2)==0)),...
((k*A*(T2-T3)/x+k*A*(T4-T3)/x+h*A*(Tinf-T3)==0)),...
((k*A*(T3-T4)/x+k*A*(T5-T4)/x+h*A*(Tinf-T4)==0)),...
((k*A*(T5-T6)/x+h*((p*x/2)+A)*(Tinf-T6)))];
[A,bb]=equationsToMatrix(eqns,T1,T2,T3,T4,T5,T6);
z=vpa((Ab),6);

Explanation / Answer

Here i think "Rank deficient" means that the matrix's you have defined , I believe it is named T1,T2 and so on, doesn't have the largest possible rank.

So in other words, it has dependent( linearly ) on rows/columns, which is not expected.

May be z=vpa((Ab),6); this is causing the warning.

I have done some research and i suppose, using NULL function might work.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote