How to call a matrix/variable, function into a bvp loop
Mostra commenti meno recenti
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
Risposte (0)
Categorie
Scopri di più su Ordinary Differential Equations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!