Info

This question is closed. Reopen it to edit or answer.

I was given these set of differential eqs. dy(1)=y(2), dy(2)=y(3), dy(3)=y(4), dy(4) =-w/(E*I), with boundary conditions: y1(0)=0, y3(0)=0, y1(L)=0, y3(L)=0. I have to use bvp4c to solve it but I can't do it here is my code. What am I doing wrong?

1 view (last 30 days)
function dy=odefun(x,y)
w=100;
E=29000000;
I=285;
dy=[y(2); y(3); y(4); -w/(E*I)]
function res=bcfun(y0,yL)
res=[y0(1); y0(3); yL(1); yL(3)]
solinit=bvpinit(linspace(0,100,100),[1 0]);
sol=bvp4c(@odefun, @bcfun, solinit);

Answers (0)

Community Treasure Hunt

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

Start Hunting!