How can I solve this problem in MATLAB? Warning!
Show older comments
Hi everybody,
I am trying to solve a system of four equations with four unknown in matlab as below:
F = 96485
syms a b c d
equation1=-0.006882+(2*F*1.9499e-7*(0.034294*a*exp(b*-1.0337)+9.938e-9*c*exp(-1.0337*d)))/(1.9499e-7*9.938e-9+1.9499e-7*a*exp(b*-1.0337)+0.034292*c*exp(-1.0337*d));
equation2=-0.006194+(2*F*2.4714e-7*(0.036518*a*exp(b*-1.02708)+1.0638e-8*c*exp(-1.02708*d)))/(2.4714e-7*1.06387e-8+2.4714e-7*a*exp(b*-1.02708)+0.036518*c*exp(-1.02708*d));
equation3=-0.005133+(2*F*3.1279e-7*(0.038873*a*exp(b*-1.0205)+1.1383e-8*c*exp(-1.0205*d)))/(3.1279e-7*1.138e-8+3.12793e-7*a*exp(b*-1.0205)+0.038873*c*exp(-1.0205*d));
equation4=-0.004766+(2*F*3.64848e-7*(0.040494*a*exp(b*-1.0162)+1.18979e-8*c*exp(-1.0162*d)))/(3.6484e-7*1.18979e-8+3.6484e-7*a*exp(b*-1.0162)+0.040494*c*exp(-1.0162*d));
sol=solve(equation1,equation2,equation3,equation4);
double(sol.a)
disp(double(sol.b))
disp(double(sol.c))
disp(double(sol.d))
When I run it, I get the following warning:
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
In four_Eqns (line 11)
ans =
0×1 empty double column vector
Can someone help me to fix this issue? I need to solve this system of 4 unknown equations.
Thank you very much
Mohi
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!