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!