Borrar filtros
Borrar filtros

How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?

1 visualización (últimos 30 días)
Lucas Romero
Lucas Romero el 11 de Sept. de 2020
Respondida: BOB MATHEW SYJI el 12 de Sept. de 2020
How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?

Respuestas (1)

BOB MATHEW SYJI
BOB MATHEW SYJI el 12 de Sept. de 2020
I got the plot for the given differential equation with the given initial condition using this function "diff_eqn1"
function sol= diff_eqn1()
syms y(x)
ode = y*diff(y)+2*x==3;
cond=y(1)==-6;
ySol(x)=dsolve(ode,cond);
ezplot(ySol(x))
end

Categorías

Más información sobre Graphics Object Programming 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