how to open excel in side script

조회 수: 2 (최근 30일)
wenchao zhang
wenchao zhang 2024년 6월 26일
편집: Image Analyst 2024년 6월 26일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by