Borrar filtros
Borrar filtros

how to open excel in side script

43 visualizaciones (últimos 30 días)
wenchao zhang
wenchao zhang el 26 de Jun. de 2024 a las 12:47
Editada: Image Analyst el 26 de Jun. de 2024 a las 15:05
i want open excel use certain command in the script, which command can i use?

Respuesta aceptada

Image Analyst
Image Analyst el 26 de Jun. de 2024 a las 15:04
Editada: Image Analyst el 26 de Jun. de 2024 a las 15:05
If you use Windows you can use ActiveX to open Excel and control anything in Excel. from your MATLAB code directly (no need to interact with Excel inside Excel, though you still can if you want). See attached demos where I do that.

Más respuestas (1)

Liam
Liam el 26 de Jun. de 2024 a las 13:17
Movida: Voss el 26 de Jun. de 2024 a las 14:19
If it is a specific file that you are trying to open in excel, you can use the winopen command to open excel. The code would look something like this:
winopen('yourFile.xls');
  1 comentario
wenchao zhang
wenchao zhang el 26 de Jun. de 2024 a las 13:34
Movida: Voss el 26 de Jun. de 2024 a las 14:19
ok,thanks,Liam,you can directly submit the answer directly, then i can accept your answer.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Export to MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by