Error in solve (Incorrect number or types of inputs or outputs for function 'solve'.)
68 次查看(过去 30 天)
显示 更早的评论
My code is:
I am getting the error:
Error in untitled3 line 4
[x,y]=solve(ec1,ec2)
How to resolve the above error?
0 个评论
采纳的回答
Walter Roberson
2023-10-23
You did not mention your MATLAB release. Since roughly R2018b that form of solve() has not been available. These days you would need something closer to
syms x y
ec1 = y == x^2;
ec2 = y == log(x+1);
[x, y] = solve(ec1, ec2)
fimplicit([ec1, ec2], [-0.9 5])
[x, y] = vpasolve([ec1, ec2], 1)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!