- Don't build specific table variable names with numeric subscripts -- use array or cell array to be able to reference variables programmatically.
- Just build the table you have in mind from the git-go instead of making up all the intermediaries -- you have to read the various data to produce the various years of data anyway, just add to the one master table.
Putting Timetables Together to Create One Large Table
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have a code. And I want to put the columns of timetables sequentially.
For instance, in my code produces these timetables tt5, tt11, tt17, tt23, tt29, tt36, tt41, tt47, tt53, tt59. They represent the years 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, and 2019, respectively.
Following the last row of tt5, I want the first row of tt11 to begin. Then following the last row of tt11, I want the first row of tt17 to begin. In this way, there creates one large table, with the data running straight from 2010 thru 2019.
I would appreciate any help. Thank you.
댓글 수: 6
dpb
2020년 6월 24일
t=[];
...
t=[t;tt5];
...
t=[t;tt11];
...
t=[t;tt17];
...
Or, you can just string 'em all out in the end.
Realistically, the whole thing ought to be trashed and rewritten...
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!