MATLAB: Save an excel file to be read only MATLABread-onlyxlswrite can we save data on excel file (by xlswrite function or other way) and define the file to be read-only from matlab? Best Answer Use this:fileattrib(FileName, '-w') Related SolutionsMATLAB: Moving excel sheets within excel file I think you'll have to use ActiveX to copy the sheet, then delete the sheet, then insert a new sheet with the desired sheet number. Search this forum for ActiveX. MATLAB: Reading excel sheetname n extracting data from that using matlab Using xlsreadnum = xlsread(filename,sheet) %Sheet can be a number or an existing sheet nameYou can use also xlsfinfo to obtain the sheet names[status,sheets] = xlsfinfo(filename) Related QuestionHow to open an excel file in read-only with actxserverCount number of sheets in excel fileHow to open an existing Excel file and communicate with it using ActiveXXlsread not reading text only excel file
Best Answer