Clarifications on using dsolve

4 次查看(过去 30 天)
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.

采纳的回答

Mischa Kim
Mischa Kim 2015-3-5
编辑:Mischa Kim 2015-3-5
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by