stack

stack(t) returns the stacked table corresponding to the table t.

Examples

>> data = urlread('https://www.mathlayer.com/support/downloads/timeseries.csv') 

% fetching data from the server

timeseries = readtable(data, 'isstring', true) [data:1x461 char] [timeseries:14x4 table] 0.252000s >> timeseries(1:3)#

% displaying 3 first rows

Date Amazon Google Apple 15/06/2015 22.42 22.88 21.5 12/06/2015 22.58 20.75 21.48 11/06/2015 22.98 20.86 21.19 >> U = stack(timeseries) U(1:5)# Date vars values 15/06/2015 Amazon 22.42 12/06/2015 Amazon 22.58 11/06/2015 Amazon 22.98 10/06/2015 Amazon 23.24 09/06/2015 Amazon 24.5

See also

groupby | unstack