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

382 次查看(过去 30 天)
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.

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-3-27
winopen('yourfile.xls')
  5 个评论
Manish Shankar Neelgar
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