In this we see that the answer contains a constant namely C22. If I want to extract just the function part ie 'sin(x)' without adding any condition how do I do that ?? Please help.

 Respuesta aceptada

Mischa Kim
Mischa Kim el 5 de Mzo. de 2015
Editada: Mischa Kim el 5 de Mzo. de 2015
Hirak, one simple way would be to add another initial condition (first derivative)
f = dsolve('D2y + y = 0','Dy(0) = 1','y(0) = 0',x)
f =
sin(x)

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Mzo. de 2015

Editada:

el 5 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by