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 Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by