how to open excel in side script

3 Ansichten (letzte 30 Tage)
wenchao zhang
wenchao zhang am 26 Jun. 2024
Bearbeitet: Image Analyst am 26 Jun. 2024
i want open excel use certain command in the script, which command can i use?

Akzeptierte Antwort

Image Analyst
Image Analyst am 26 Jun. 2024
Bearbeitet: Image Analyst am 26 Jun. 2024
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.

Weitere Antworten (1)

Liam
Liam am 26 Jun. 2024
Verschoben: Voss am 26 Jun. 2024
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 Kommentar
wenchao zhang
wenchao zhang am 26 Jun. 2024
Verschoben: Voss am 26 Jun. 2024
ok,thanks,Liam,you can directly submit the answer directly, then i can accept your answer.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by