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

448 ビュー (過去 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 Center および File ExchangeData Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by