% Generate a 10×20 matrix of random numbers between 1 and 200
A = randi([1 200], 10, 20);
% Write the matrix to an Excel file
filename = ‘random_matrix.xlsx’;
xlswrite(filename, A);
The above code is to write it into an excel file
% Generate a 10×20 matrix of random numbers between 1 and 200
A = randi([1 200], 10, 20);
% Write the matrix to an Excel file
filename = ‘random_matrix.xlsx’;
xlswrite(filename, A);
The above code is to write it into an excel file