- 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!