How can I plot the following curve (which is in an implicit form)

조회 수: 3 (최근 30일)
Sharad Dwivedi
Sharad Dwivedi 2015년 1월 23일
답변: Youssef Khmou 2015년 1월 23일
I need to plot the following curve:
ay^3+by=cx+d;
in which x can be taken as x=0:1:10; I am unable to plot y V/s x. i.e. plot(x,y). Here a, b ,c and d are known parameters.
Thanks for your help.

채택된 답변

Youssef  Khmou
Youssef Khmou 2015년 1월 23일
For this form of equation, you can use contour function, or symbolic function ezplot, for the first solution you need to use meshgrid function and contour a solution at constant d ,as the following :
[x,y]=meshgrid(0:0.1:10);
a=4;b=1;c=2;
d=6;
f=a*y.^3+b*y-c*x-d;
contour(x,y,f,[d d],'k')
xlabel('x');
ylabel('y');
title(' f(x,y)=ay^3+by-cx-d')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by