Clarifications on using dsolve

4 Ansichten (letzte 30 Tage)
Hirak Doshi
Hirak Doshi am 5 Mär. 2015
Bearbeitet: Mischa Kim am 5 Mär. 2015
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.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 5 Mär. 2015
Bearbeitet: Mischa Kim am 5 Mär. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by