How to fix the "time"?

2 visualizaciones (últimos 30 días)
Ara
Ara el 10 de En. de 2017
Comentada: Ara el 11 de En. de 2017
Dear All,
I know it may sounds a very basic question. But, please let me share it to find this out.
I had a multiple "matFiles", where each file contain different parameters include "time". The column vector of time start from 0-24 for each matFiles. I read all the 365 matFiles and save it in 1x1 struct. Now the column vector of time start from 0-24, 25, 26,.., and so on. What I want is to plot data as a function of time, where start only from 0-24hrs.
I would greatly appreciate your help on this matter,
Thanks,
Ara
  2 comentarios
Sean de Wolski
Sean de Wolski el 10 de En. de 2017
Can you provide a small amount of data/code?
My guess is that mod(time,24) will most likely be what you want.
Ara
Ara el 11 de En. de 2017
Thank you, Sean de Wolski.
Here is the result that I get.(x=time, y=index)
and when I used mod(time, 24), the result would be like this.
here is the size of my time;
ans =
1145793 1
I would appreciate your comment on this,
Thanks, Ara

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by