I have an Excel file which contains more than 20 sheet. I am writing a module in Matlab where I need to check if a particular worksheet say for example 'SalaryData' is present in the Excel file.
I am not able to use xlsinfo
I think, this function is not available in the Matlab version I am currently using.
I intend to use actxserver to check the existence of the worksheet. What I am currently doing is something like :
SheetExist=1;
try
sheet = get(Excel.Worksheets,'Item',sheetname);
catch
disp('File Does not exist');
SheetExist=0;
end
I think there is a much better and a easier way to check.
Thanks