How to print several timetables side by side?

조회 수: 1 (최근 30일)
Bruno Carvalho
Bruno Carvalho 2021년 8월 12일
댓글: Scott MacKenzie 2021년 8월 16일
So, I need to print some timetables side by side, of with the names are, for example ventoAC_06, and ventoAC_12.
These timetables have the date displayed in dd-MMM-yyyy hh-mm-ss and have 1 column with 802 numbers for each date.
Trying to print them i turned the dates into a string. time = datestr(ventoAC_06.Time);
time =
'11-Mar-2019 12:00:00'
'01-Mar-2019 00:00:00'
'21-Dec-2017 12:00:00'
Then,
fileID = fopen('vAC_TimeTable.txt','w');
fprintf(fileID,'%s\n',time.');
fprintf(fileID,'%20s %.4f\n',time.',ventoAC_06.AC06);
But this doesnt give me the first timetable as i want.
Can someone help? Thank you
  댓글 수: 1
Scott MacKenzie
Scott MacKenzie 2021년 8월 16일
I'm not sure exactly what you mean by "side by side", but if these are timetable arrays, perhaps synchronize will suffice. It will combine all the data from both timetables. New columns are added as necessary and new rows are added for any row in one table without a corresponding row in the other table.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by