How to check if excel is installed?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Noah Kilps
el 30 de Oct. de 2020
Comentada: Walter Roberson
el 2 de Nov. de 2020
Hello,
My script writes to an xls file. I am packaging this as an app to pass onto others to use. However it occurred to me that it could be possible that they don't have excel. I was wondering if there was a way for matlab to check if you have excel installed before writing/opening an excel file.
Thanks
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de Oct. de 2020
Look at the code for xlswrite, which does
try
Excel = matlab.io.internal.getExcelInstance;
catch exception %#ok<NASGU>
warning(message('MATLAB:xlswrite:NoCOMServer'));
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!