Join multiple readtable data with WeirdDuration
이전 댓글 표시
I need help in join the readtablefcn with attached files to an exsisting routine so that I can combine multiple table data.
I have file with different format and I join them using below routine. Example
댓글 수: 11
Adam Danz
2019년 12월 24일
I'd like to understand the problem without having to download zip files, extract them, set up the code to read those files, and then run the code in hopes to understanding the problem. Perhaps you could distill this down to two examples tables and how you'd like to join them (if that's the main issue).
Life is Wonderful
2019년 12월 24일
편집: Life is Wonderful
2019년 12월 24일
Adam Danz
2019년 12월 24일
"I find it difficult to add to exsisting joining multiple time series i.e. join multiple time series into one."
So you're reading in the data without a problem but there's a problem with combining the two timetables; is that correct? Could you attach a mat file that contains the two timetables?
Life is Wonderful
2019년 12월 24일
편집: Life is Wonderful
2019년 12월 24일
Make this super easy for us. Ideally, we should see the problem in two steps.
- Loading the attached files
- running a block of code that you provide us.
Instead, I don't know what file to look at, which code to run, and where to look for the problem.
Life is Wonderful
2019년 12월 24일
편집: Life is Wonderful
2019년 12월 24일
Adam Danz
2019년 12월 24일
When I run get_fieldnames() with the matfile1 data, I get this error
Unrecognized function or variable 'get_TimeStampCorrection'.
Error in get_fieldnames (line 41)
[structtable_Date] = get_TimeStampCorrection(Ref_Input,Curr_Input,fieldidx);
There is a file get_TimeStampCorrection that's not included in the zip.
Adam Danz
2019년 12월 26일
Ahhh! I missed it .Please find the attachment
Ok, I can run the code now.
Now I need to understand where the problem is. Is the problem in this line (line number 55 in get_fieldnames)?
joinedtimetable = outerjoin(joinedtimetable, structtimetable,'Merge',true); % 'LeftKeys','RightKeys'
You're merging two table with different column names.
joinedtimetable(1,:)
ans =
1×3 timetable
WeirdDuration log_autoserv1_autoserv Sublog_autoserv1_autoserv Message_autoserv1_autoserv
_____________ ______________________ _________________________ ______________________________________________________________________________________________
00:00:00.000 {'INFO |'} {'autoserv:0739|'} {'Results placed in /tmp/test_that_results_hatch_ZByste/results-17-firmware_TPMKernelVersion'}
structtimetable(1,:)
ans =
1×3 timetable
WeirdDuration DBGLog_upstart1_upstart InnerTime_upstart1_upstart Message_upstart1_upstart
_____________ _______________________ __________________________ _________________________________________________________________
00:00:00.000 {'WARNING kernel:'} {'[ 10.690227]'} {'init: failsafe-delay main process (681) killed by TERM signal'}
Life is Wonderful
2020년 1월 2일
편집: Life is Wonderful
2020년 1월 2일
Adam Danz
2020년 1월 2일
Hi again, I just spent about 20+ minutes re-reading the comments and going through the code and I still cannot understand exactly what we're trying to fix. I'd like to help but I it's just taking too much time to sift through all of this in order to understand the problem - even at a big picture level.
This is why is important to reproduce the problem with as little code as possible in order to provide a Minimal Working Example. Ideally, you'll get the fastest responses when the problem is described super clearly in just a few sentences and we can copy a short bit of code into our workspace that demonstrates the problem.
채택된 답변
추가 답변 (1개)
Life is Wonderful
2020년 1월 8일
편집: Life is Wonderful
2020년 1월 8일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!