draw othorgonal trajectories using differential equations
이전 댓글 표시
to draw orthogonal trajectories am i suppose to use dfield or is ezplot as shown below on the right track
Using the Matlab draw the families of orthogonal trajectories for the following differential equation 1) dy /dx = a*x*y /(b*x^2−c*y^2 )
2) dy/ dx = −d*x /e*y
syms y(x) x y
ode = diff(y,x) == (a*x*y)/(b*x^2-c*y^2);
ysol(x) = dsolve(ode)
ezplot(y(x))
error coming up
채택된 답변
추가 답변 (1개)
Brenda Galabe
2018년 12월 12일
0 개 추천
댓글 수: 5
madhan ravi
2018년 12월 12일
It means the equation cannot be solved
Brenda Galabe
2018년 12월 12일
madhan ravi
2018년 12월 13일
Anytime :) , no I don't tutor anyone.
Brenda Galabe
2018년 12월 13일
편집: madhan ravi
2018년 12월 13일
madhan ravi
2018년 12월 13일
syms y(x) C5 %C5 arises in ysol change it to your constant whether C2 or etc.. doesn't matter
d= 5;
e = 8;
dydx=diff(y);
ode = dydx == (-d*x)/(e*y);
ysol = vpa(dsolve(ode));
y1=subs(ysol,C5,4);
fplot({y1(1),y1(2)})

카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!