Hello,
I am trying to save a spreadsheet after my calculations with following code:
for j=1:numel(parameter_list) %my code here
%% writing output col_header={'Parameter_name','X','Y','Z'}; row_header=Batch_name; data=[X,Y,Z]; data_cells=num2cell(data); output_matrix=[{' '} col_header; row_header Parameter_name data_cells]; xlswrite([basefolder '\' 'resultls.xlsx'],output_matrix);end
Now what I am getting is the last paramter details of parameter_list but I want the output to store all the values of X,Y & Z over j=1:numel(parameter_list).
Best Answer