dsolve the second order differential equation in Matlab 7
Show older comments
I am a beginner in MATLAB. I've been trying hard to solve the 2nd order ode using dsolve but I get error 'The 'implicit' option is not available when giving Initial Conditions.'
g=9.8;
l=1;
y=dsolve('D2y+(g/l)*sin(y)=0','y(0)=pi/2','Dy(0)=0','t')
I don't know how to solve it. Is it because of my MATLAB version or some other reason? Is there any other way to do it?Everywhere I search in Internet,there are examples which don't work on my MATLAB,may be because they are for newer versions. I didn't get for MATLAB7. Please anyone who could help me with it.
Accepted Answer
More Answers (0)
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!