Troubles plotting y==0 using fimplicit
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/521617/image.png)
syms x y
fimplicit([x==0,y==0])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/521622/image.png)
Apparently, the solution set for the second equation (y==0) is not plotted correctly. If x is understood by the function as the horizontal axis, which is suggested by seeing a vertical graph for the x==0 equation, the graph for the y==0 equation should be a horizontal line and it is not:
fimplicit(y==0)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/521627/image.png)
Strangely enough, if the function definining the equation is only slightly perturbed, the problem dissapears
fimplicit(y+10e-8*x==0)
axis([-5 5 -5 5])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/521632/image.png)
댓글 수: 0
채택된 답변
Raynier Suresh
2021년 2월 19일
Hi, you could try the below code
fimplicit(@(x,y) x);hold on;fimplicit(@(x,y) y)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!