Error in solve (Incorrect number or types of inputs or outputs for function 'solve'.)
조회 수: 68 (최근 30일)
이전 댓글 표시
My code is:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1518236/image.png)
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!