MATLAB: How to export data in a wished format to excel

array to columnconvertexcelexporttable to column

I want to export the data below into excel and with xlswrite I managed to export it but in a non wished format, namely in the 4×52 table format in excel.
Are there ways to export each variable (4×52 array) just into 1 column in excel? So i managed to export the data like on the left side e.g. for "trialno" but i want to export the data like on the right side of the screenshot below for each 4×52 array respectivley. Thanks for you help!

Best Answer

Convert your data into column format and pass to xlswrite.
xlswrite(filename, trialno(:)); % trialno(:) will convert 4*52 to a column vector