필터 지우기
필터 지우기

I need to import multiple text files into one single timetable.

조회 수: 1 (최근 30일)
I have multiple text files (all with same data, but different time stamps). I need to create one single timetable, so I can create a single timetable for further data manipulation.
Matlab does not allow using a loop to create an array of timetables (for each text file) that can later be concatenated by another loop into a single timetable?

채택된 답변

Walter Roberson
Walter Roberson 2023년 8월 3일
pre-initialize a cell array according ot the number of files. Loop over the files, reading in the timetable and storing it at the appropriate offset of the cell array.
After the loop,
CombinedTable = vertcat(CellArrayOfTables{:});

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by