Matlab Actxserver :How could I terminate process opened by actxserver in matlab
问题 I want to open and close an Excel file in MATLAB. I have tried the code below, but it failed on closing process with actxserver h.WorkBooks.Item(wbkname).Close; here is my code for this issue, how can I terminate the excel file? .Quit .delete I also tried to close excel file via VBA sub-module, but it gives me an error message: fullFileName = [pwd '\KOSPI200_1월.xlsm']; excel = actxserver('Excel.Application'); file = excel.Workbooks.Open(fullFileName); excel.Run('jongho_bot_initial'); excel