I try to solve the ODE shown on the figure. E and I are constants and q is a point Load in the middle of the beam i.e. at x=5. I want to obtain the settlement (=s) in function of x. The beam starts at x=0 and ends at x=10.
- My first problem is to write the correct fuction for q. I used: q*heaviside(x-5)
- The second problem is solving the ODE. I used : dsolve function. I have 4 Boundary conditions:
- The Moment is 0 at x=0
- The Moment is 0 at x=10
- The Shear force is 0 at x=0
- The Shear force is 0 at x=10
This is my code. Thanks in advance and keep in mind that i am a beginner in matlab.
EI=10;k=4;q=1;x=0:0.1:10;syms s(x); Ds = diff(s);D2s = diff(s,2);D3s = diff(s,3);dsolve(q*heaviside(x-5)==diff(s,4)*EI+k*s,D2s(0)*EI==0,D2s(10)*EI==0,D3s(0)*EI==0,D3s(10)*EI==0)
Best Answer