can we apply ode45 on .mat file
Mostrar comentarios más antiguos
I have a data of 100x5 columns. can i apply ode45 solver on this data against my specfic initial conditions?
or what is the best way to apply ODE solver on the data?
3 comentarios
Steven Lord
el 21 de Dic. de 2023
How specifically is this data related to the system of ODEs that you're trying to solve?
If your data was the following, what would be the associated system of ODEs?
x = (1:100).' + (200:204);
Muhammad
el 21 de Dic. de 2023
We cannot make sense of your problem description.
If you want to integrate the 5 columns, you can use "cumtrapz":
x = 0:0.1:2*pi;
y = sin(x);
Y = cumtrapz(x,y);
hold on
plot(x,Y)
plot(x,-cos(x)+1)
hold off
grid on
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
