MATLAB: How to create table and export it to Excel

excelexport table

I have few vectors at the same length that contains numbers. I want to export them to the Excel or Word. how i do it?

Best Answer

v1 = [1 2 3 4 5]; v2 = [6 7 8 9 10]; v3 = [11 12 13 14 15];
xlswrite('somefile.xlsx', [v1;v2;v3]);