how to open excel in side script

3 次查看(过去 30 天)
i want open excel use certain command in the script, which command can i use?

采纳的回答

Image Analyst
Image Analyst 2024-6-26
编辑:Image Analyst 2024-6-26
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.

更多回答(1 个)

Liam
Liam 2024-6-26
移动:Voss 2024-6-26
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 个评论
wenchao zhang
wenchao zhang 2024-6-26
移动:Voss 2024-6-26
ok,thanks,Liam,you can directly submit the answer directly, then i can accept your answer.

请先登录,再进行评论。

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by