Error message Error using mupadengine/feval_internal More equations than variables is only supported for polynomial systems. Error in sym/vpasolve (line 172) sol = eng.fe
Show older comments
Hello I am trying to find all the values of C for the following equation in a 2D matrix:
eqa = exp(-r2.*C.*Te) .* (((1 - exp(-P-(r1.*C.*Tr)) - cosAb.*(exp(P) - exp((-2.*P)-(r1.*C.*Tr)))))./(1 - exp(P) - cosAb.*(exp(P-(r1.*C.*Tr)) - exp((-2.*P)-(r1.*C.*Tr))))) - 1 == E
I tried to use vpasolve but i keep getting this same error:
Error using mupadengine/feval_internal
More equations than variables is only supported for polynomial systems.
Error in sym/vpasolve (line 172)
sol = eng.feval_internal('symobj::vpasolve',eqns,vars,X0);
Error in editorequationstwo (line 40)
J = vpasolve(eqa, C)
Can some one help me find what I am doing wrong?
Code I used is:
app.Ei = cast(niftiread("Ei_volume.nii"),'double'); %96 x 80 x 72 x 146
app.T10 = cast(niftiread("new_T1map_T1.nii.gz"),'double'); %96 x 80 x 72
app.Brainmask = cast(niftiread("irp_brain_mask.nii.gz"),'double'); %96 x 80 x 72
Eii = app.Ei .* app.Brainmask;
size(Ei) % 96 x 80 x 72 x 146
T100 = app.T10 .* app.Brainmask;
size(T10) % 96 x 80 x 72
syms r2 Ei Te Tr P r1 cosAb C
Ei = Eii(:,:,36,16);
r2 = 6.7;
Te = 0.00137; %seconds
Tr = 0.003; %seconds
T10 = T100(:,:,36,:);
r1 = 4.2;
Ab = 9; %degrees
Ab = deg2rad(Ab); %inradians
cosAb = cos(Ab);
P = Tr./T10;
eqa = exp(-r2.*C.*Te) .* (((1 - exp(-P-(r1.*C.*Tr)) - cosAb.*(exp(P) - exp((-2.*P)-(r1.*C.*Tr)))))./(1 - exp(P) - cosAb.*(exp(P-(r1.*C.*Tr)) - exp((-2.*P)-(r1.*C.*Tr))))) - 1 == Ei;
J = vpasolve(eqa, C)
Accepted Answer
More Answers (0)
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!