Hi, I am completely new to Matlab and am looking to solve a simple second order differential equation:
y''+w^2*y=0 IC: y(0)=0, y'(0)=1 BC=[0,pi]
I am looking to solve for both y(x) and y'(x)
I understand this is a simple equation to solve and have done it fine on paper. However I have been trying different ways to solve it on matlab but to no avail. I have tried both dsolve and ode45 functions but did not quite understand what I was doing. Any help would be great. Thanks in advance, Ben
Best Answer