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?
global Array1global Array2filename = 'data.xlsx';for i = 1:3sheet = ifor j = (1:2)-1one = ;two = ;Array1 = [Array1; one]Array2 = [Array2; two]endxlswrite(filename, Array1, sheet, 'A1');xlswrite(filename, Array2, sheet, 'B1');%here I would like to delete the elements of Array1 and Array2end