how to use XLSWRITE function in the forloop?
1 次查看(过去 30 天)
显示 更早的评论
how to use xlswrite function in the for loop ,allowing for loop to write data into excel sheet in every iteration of the for loop.
syntax of xlswrite for specifying the range is given as follows,but how to specify the row range ,(if using for loop)
xlswrite(filename, M, 'range')
writes matrix M to a rectangular region specified by range in the first worksheet of the file filename. Specify range using one of the following quoted string formats:A cell designation, such as 'D2', to indicate the upper left corner of the region to receive the matrix data.Two cell designations separated by a colon, such as 'D2:H4', to indicate two opposing corners of the region to receive the matrix data.
The range 'D2:H4' represents the 3-by-5 rectangular region between the two corners D2 and H4 on the worksheet.
回答(1 个)
Walter Roberson
2017-6-10
You can use dec2base27() from the File Exchange to convert numeric columns into Excel column letter notation.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!