Here is a simple example for writing data to an Excel file using actxserver
function in MATLAB:
main.m559 chars27 lines
This example creates an instance of Excel, adds a new workbook, writes data to cells A1 to B3, saves the workbook and then closes Excel.
Note: Make sure to close the workbook and Excel instance, else Excel will remain open and running in the background.
gistlibby LogSnag