Hello I have created fle name 'MAT.XLS'
I need to clear the content of 'sheet1' in MAT.XLS fle through matlab, I used ActiveXSERVER command
Excel = actxserver('Excel.Application');Workbook = Excel.Workbooks.Open(strcat(pwd,'\MAT.xls'));% Make the application invisible
set(Excel, 'Visible', 0);% Make excel not display alerts
set(Excel,'DisplayAlerts',0);% Get a handle to Excel's Workbooks
Workbooks = Excel.Workbooks;Sheets = Excel.ActiveWorkBook.Sheets;[type, sheet_names] = xlsfinfo(strcat(pwd,'\MAT.xls'));current_sheet = get(Sheets, 'Item', 1);invoke (current_sheet, 'Activate');
How do I clear the contents of the sheet1
Can somebody help me.
Best Answer