How can we plot the same time history plot two times but the second time with a time delay of 2 sec?
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
juan sanchez
el 26 de Oct. de 2025 a las 5:31
Respondida: Eric Sofen
el 3 de Nov. de 2025 a las 17:03
How can we plot the same time history plot two times but the second time with a time delay of 2 sec?

0 comentarios
Respuestas (2)
Eric Sofen
el 3 de Nov. de 2025 a las 17:03
Without seeing your current code, it's hard to give a detailed response, but assuming your data is in a timetable, the lag function can be used to shift the time vector by either n timesteps or a time interval dt. Then you can plot that result the same way you're plotting your original dataset.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
