filename = 'testdata.xlsx';
header = {'name', 'Age'};
A = [12.7;5.02;-98;63.9;0;-.2;56];
B= [12.7;5.02;-98;63.9;0;-.2;56];
c = cell(8,2);
c(1,:) = header;
c(2:8,:) = num2cell([A,B]);
xlswrite(filename,c);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!