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!