ODE23 taking in 3 variables
Mostra commenti meno recenti
I can run this function with 2 z values but when I try to add another z value I get an error. Do you know how to run this function for 3 z values?
Error: Index exceeds matrix dimensions.
function dxdy = TY3(t,z)
dxdy = [z(3); 1*z(3)+2*z(2)+3*z(1)];
[t,z] = ode23(@TY3,[0 30],[1 0 ]);
plot(t,z(:,1),'k','LineWidth',2);
Risposta accettata
Più 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!