How do you open a .xlsx file in excel from matlab.

조회 수: 520 (최근 30일)
ryan
ryan 2013년 3월 27일
편집: KAE 2024년 7월 18일
I am trying to open up a .xlsx file from matlab, and have it open in excel. Right now I am using the command open(filename). This will open the .xlsx in matlab, but i want it opened in excel. The command opentxt(filename) is nice, because it will open a .txt file in notepad. I am looking for something like that for .xls/.xlsx files in excel.
  댓글 수: 1
MD Anower Hossain
MD Anower Hossain 2020년 10월 26일
its very easy just type
xlsread('the name location of xlsx file or name the file');

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 27일
winopen('yourfile.xls')
  댓글 수: 5
Manish Shankar Neelgar
Manish Shankar Neelgar 2021년 1월 19일
Thank you for letting us know about this command.
But, could you please tell me how can I open a specific sheet/sheets in excel?
Thank you
KAE
KAE 2024년 7월 18일
편집: KAE 2024년 7월 18일
This even works to open a CSV file in Excel from within Matlab R2023b, which is what I needed to do. Thanks!

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

추가 답변 (3개)

Lingfei Tang
Lingfei Tang 2018년 9월 2일
편집: Lingfei Tang 2018년 9월 2일
For Linux/MacOS it is uiopen('file.xlsx') or just open.
There is no way to open externally but there is a "macopen" function downlodable in file exchange.

ryan
ryan 2013년 3월 27일
Thank you! Exactly what I was looking for.

noda farfosha
noda farfosha 2017년 7월 12일
how can i collect more than workspace in only one?

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by