How to fix the "time"?

2 vues (au cours des 30 derniers jours)
Ara
Ara le 10 Jan 2017
Commenté : Ara le 11 Jan 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 commentaires
Sean de Wolski
Sean de Wolski le 10 Jan 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 le 11 Jan 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

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by