MATLAB: Isn’t the data sent to Excel when I use MLGetMatrix in a macro

datamacromlgetmatrixSpreadsheet Link

Why isn't my data sent to Excel when I use MLGetMatrix in a macro?

Best Answer

When you use MLGetMatrix in a macro you must follow the MLGetMatrix command with the MatlabRequest command. This will update the data in Excel. Please see page 1-7 of the "Excel Link User's Guide" for more information on using MLGetMatrix in a macro: