How to fix the "time"?

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 Comments

Can you provide a small amount of data/code?
My guess is that mod(time,24) will most likely be what you want.
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

Sign in to comment.

Answers (0)

Asked:

on 10 Jan 2017

Commented:

on 11 Jan 2017

Community Treasure Hunt

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

Start Hunting!