The following code is executed but I have no idea to delete the elements of array on MATLAB.
And therefore, Array1 and Array2 are written out with the former data.
Every time when i is increased, I would like to reset Array1 and Array2.
How can I change the following code?
filename = 'data.xlsx';
for i = 1:3
sheet = i
for j = (1:2)-1
one = ;
two = ;
Array1 = [Array1; one]
Array2 = [Array2; two]
xlswrite(filename, Array1, sheet, 'A1');
xlswrite(filename, Array2, sheet, 'B1');