How to call a matrix/variable, function into a bvp loop
Show older comments
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
Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!