I am trying to save a 1D array into a table in MATLAB. I would like the data to be saved in one column, with 5 rows of data, not 5 columns with one row of data (shown below).
testarray = [1:5];
testarray =
1 2 3 4 5
t=table(testarray);
t=array2table(testarray)
t =
testarray1 testarray2 testarray3 testarray4 testarray5
__________ __________ __________ __________ __________
1 2 3 4 5
What I would like the output to look like:
t =
testarray
_________
1
2
3
4
5
If anyone has any idea of how I can make this work, please let me know!