I am executing a MATLAB function on a remote system using the DFEVAL function as shown below:
servername = myServername';out = dfeval(@myExcelJob, {rand(1, 20)},'LookupURL',servername, 'FileDependencies',{'myExcelJob.m'});
where
function out = myExcelJob(a)fileName = 'myExcelFile.xlsx';xlswrite(fileName, a);out = pwd;
However, when I receive the following warning message:
Warning: Could not start Excel server for export. XLSWRITE attempts to file in CSV format.
This warning indicates that Excel could not be started as a COM server. However, when I compile my function "myExcelJob.m" into a standalone executable and execute it on this same remote system, I am able to successfully create an Excel file.
Best Answer