MATLAB: How to solve this equation in matlab? Please help differential equationsmathematicsMATLABodepdes please help me for solving this equation in matlab , thank you all , see the attached file. Best Answer Use MATLAB's bvp4c to solvey1' = y2y2' = a*sin(y1)*cos(y1)(a=V^2/V_th^2*Pi^2/L^2)with boundary conditionsy1(0.01)=Pi/2y1(L)=Pi/2Best wishesTorsten. Related SolutionsMATLAB: Loop for bvp4c function with an unknown parameter Maybesol = bvp4c(@(x,y,S)fourode(x,y,S,k),@(ya,yb,S)fourbc(ya,yb,S,k),solinit,options);Otherwise pass k to fourode and fourbc as global.Best wishesTorsten. MATLAB: Help regarding use of BVP4C in solving an third order ODE. Hi,this works:init=bvpinit(linspace(0,4,8),[0 0 0]);sol=bvp4c(@rhs_bvp,@bc_bvp,init);plot(sol.x,sol.y(1,:),sol.x,sol.y(2,:),sol.x,sol.y(3,:))function bc=bc_bvp(yl,yr) %ya(1), ya(2), yb(2)bc=[yl(1); yl(2); yr(2)-1];endfunction rhs=rhs_bvp(x,y)rhs=[y(2); y(3); y(2)-y(1)*y(3)-1];endBest regardsStephan Related QuestionHelp in using bvp4c second order ODE.4th order ODE, boundary conditions problem
Best Answer