matlab warning conflict name -
matlab warning conflict name -
% name of excel file filename = 'directory\output.xls'; % name of sheet wan delete sname='corner'; % open excel com automation server excel = actxserver('excel.application'); % open excel workbook workbook = excel.workbooks.open(filename); %get handle sheet hsheet=excel.sheets.item(sname); hsheet.delete % save/close/quit/delete workbook.save; excel.workbook.close; invoke(excel, 'quit'); delete(excel)
above code work on other filename not file wish delete...why? warning below:
warning: function directory\norm.m has same name matlab builtin. suggest rename function avoid potential name conflict.
however, norm.m not function, script , result of norm.m output.xls...how can solve it?
there's matlab function called norm
comes matlab. if rename file else, stop complaining. on other hand, shouldn't brake programme either. should still work, warning. has nil file you're trying delete.
matlab
Comments
Post a Comment