You can use the actxserver function to create an instance of Excel in MATLAB and then use the invoke method of the Excel object to open the file and keep it open until it is closed manually.
Here's an example code snippet:
main.m341 chars14 lines
Note that you should always release the resources used by the Excel object by calling the release function. Also, make sure to replace 'path_to_file.xlsx' with the actual path to the Excel file you want to open.
gistlibby LogSnag