For example, if there are 10 folders in a directory, how can I print their names in the first excel row, with the format '1 name for each cell'?
Here is the code of what I tried so far
for folder = 1:length(srcFolders) path = strcat('D:\',srcFolders(folder).name); folder_range = strcat(column_range, '1'); xlswrite(xls_filename, {srcFolders(folder).name}, xls_sheet, folder_range); end
Best Answer