I would like to write my matlab workspace file 'frequencycurve' to an excel file 'frequency.xlsx'. I want to loop my program each time so that it writes my 'frequencycurve' to new aera of the same sheet of excel file.
I want to write first loop data into A1:C5 then A2:C6 till A10:C15 of the excel file.
I use following code but is not working. Kindly help.
filename = 'frequency.xlsx';for i=1:10for j=5:15 range='A(i):C(j)'; xlswrite(filename,frequencycurve,range)endend
I want to write first loop data into A1:C5 then A2:C6 till A10:C15 of the excel file.
Best Answer