Hello,
I have two files with different sizes, in each file 4 columns are there
fisrt column is time
second column is tec in one file and roti in another file
third column is day of the year (1 to 365 days)
forth column is PRN number varies from 1 to 32
so in both the files only second column is the data that i want in a order. now i want data like for each prn (column4), in a day, if time is same in both file then take tec and roti, if not same then no need.
this is how i need the data
prn time doy tec roti
1 1 1 24 3.4
1 2 1 19 2.9
please help me..
thank you

7 件のコメント

Walter Roberson
Walter Roberson 2022 年 4 月 30 日
Use a timetable() object and use synchronize()
LISSA DUVVU
LISSA DUVVU 2022 年 4 月 30 日
but i have Matlab 2018a, it is not working
Walter Roberson
Walter Roberson 2022 年 4 月 30 日
LISSA DUVVU
LISSA DUVVU 2022 年 4 月 30 日
It is showing error as Undefined function 'synchronize' for input arguments of type 'double'.
dpb
dpb 2022 年 4 月 30 日
@Walter Roberson said "Use a timetable() object..." and the documenation illustrates that synchronize() operates on two timetables, not individual arrays.
Walter Roberson
Walter Roberson 2022 年 4 月 30 日
D = days(doy) + hours(time)
TT = timetable(prn, tec, roti, 'rowtimes', D)
it might have to be hours(time-1)
LISSA DUVVU
LISSA DUVVU 2022 年 5 月 2 日
Thank you sir, it is working

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

質問済み:

2022 年 4 月 30 日

コメント済み:

2022 年 5 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by