How to fix the "time"?

조회 수: 2 (최근 30일)
Ara
Ara 2017년 1월 10일
댓글: Ara 2017년 1월 11일
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
Sean de Wolski
Sean de Wolski 2017년 1월 10일
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 2017년 1월 11일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by