xlswrite
Write data to an Excel (.xlsx) file.
Syntax
Section titled “Syntax”xlswrite(filename, A)xlswrite(filename, A, sheet)xlswrite(filename, A, sheet, range)[status, message] = xlswrite(filename, A, ...)Description
Section titled “Description”Writes A (a matrix or cell array) to an Excel workbook. With sheet, writes to the named sheet (created if missing). With range, writes starting at the upper-left cell of the range. Two-output form returns status (logical success) and message (error or warning text).
Example
Section titled “Example”xlswrite('out.xlsx', magic(5), 'Results', 'A1')