Time in seconds ode45

6 visualizaciones (últimos 30 días)
Shahad Alomani
Shahad Alomani el 26 de Mayo de 2020
Comentada: Star Strider el 26 de Mayo de 2020
Hi,
How can I create an array of 10 seconds start from 0 second increment by 0.1 seconds to 10 seconds?
Thank you
I tried to use seconds function but it didn't work I need this time for ode45 tspan

Respuesta aceptada

Star Strider
Star Strider el 26 de Mayo de 2020
Create the ‘tspan’ argument as a vector of more than two elements:
tspan = 0 : 0.1 : 10;
.
  6 comentarios
Shahad Alomani
Shahad Alomani el 26 de Mayo de 2020
Thank you
Star Strider
Star Strider el 26 de Mayo de 2020
Shahad Alomani — As always, my pleasure!
Steven — Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by