plot y(x) graph when differential is given
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
I was asked to plot graph of y(x) but the given eq. is differential:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/681873/image.png)
A,B,C,D are constants, and x is between [0, 50]
But I seriously dont know where to start... help?
댓글 수: 3
Star Strider
2021년 7월 12일
Integrating that symbolically leads to an expression that will be impossible to invert.
syms A B C D x(y) x0
Dx = diff(x);
Eqn = Dx == A - B*x*exp(y) / (C+D*y);
x(y) = simplify(dsolve(Eqn, x(0)==x0), 500)
The matlabFunction function cannot work with that, so the only possible approach would be to code it and then use fsolve to solve for ‘y’ as a function of ‘x’. It will be necessary to supply all the constants and then plot it to even determine if the numeric approach is possible.
.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!