Filter löschen
Filter löschen

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

386 Ansichten (letzte 30 Tage)
ryan
ryan am 27 Mär. 2013
Bearbeitet: KAE am 18 Jul. 2024
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 Kommentar
MD Anower Hossain
MD Anower Hossain am 26 Okt. 2020
its very easy just type
xlsread('the name location of xlsx file or name the file');

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Mär. 2013
winopen('yourfile.xls')
  5 Kommentare
Manish Shankar Neelgar
Manish Shankar Neelgar am 19 Jan. 2021
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 am 18 Jul. 2024
Bearbeitet: KAE am 18 Jul. 2024
This even works to open a CSV file in Excel from within Matlab R2023b, which is what I needed to do. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (3)

Lingfei Tang
Lingfei Tang am 2 Sep. 2018
Bearbeitet: Lingfei Tang am 2 Sep. 2018
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 am 27 Mär. 2013
Thank you! Exactly what I was looking for.

noda farfosha
noda farfosha am 12 Jul. 2017
how can i collect more than workspace in only one?

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by