Is there a way to avoid writing every variable name when using gather?
Show older comments
I am using tall arrays and gather to extract several variables. For instance, to extract date and time I have used
ds.VariableNames(1:2) = {'date','time'}
and then
[date,time] = gather(tt.date,tt.time)
where tt = tall(ds). I have found a way of linking the data columns to a spreadsheet containing the variable names and the column numbers, which avoids typing
{'date','time'}
but cannot think of a way of a way to avoid typing
tt.date, tt.time, etc
Accepted Answer
More Answers (0)
Categories
Find more on Tall Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!