Borrar filtros
Borrar filtros

plot y(x) graph when differential is given

1 visualización (últimos 30 días)
mor levi
mor levi el 12 de Jul. de 2021
Comentada: Star Strider el 12 de Jul. de 2021
Hi
I was asked to plot graph of y(x) but the given eq. is differential:
A,B,C,D are constants, and x is between [0, 50]
But I seriously dont know where to start... help?
  3 comentarios
mor levi
mor levi el 12 de Jul. de 2021
y not given
I only know the range of x
Star Strider
Star Strider el 12 de Jul. de 2021
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)
x(y) = 
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.
.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by