How to call a matrix/variable, function into a bvp loop
이전 댓글 표시
I am trying to solve 2 different ODE and second ODE is dependednt on first ODE.
ODE 1: y'''+yy''-(y')^2=1
ODE 2: x''+yx'-xy'=0. At this point i have values of y and y', but I keep getting error "unrecognized function or variable 'x'" everytime I am trying to bring in y into bvp function
function dHdeta = bvpfcnI(eta,x)
dHdeta= zeros(2,1)
dHdeta = [ x(2)
-y(1,:)*x(2)+x(1)*y(2,:)];
end
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!