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

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 comentario

its very easy just type
xlsread('the name location of xlsx file or name the file');

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 27 de Mzo. de 2013
winopen('yourfile.xls')

5 comentarios

ahmed mahdy
ahmed mahdy el 14 de Oct. de 2015
Thanks...you solved a big problem of me
Akhil  Reddy
Akhil Reddy el 20 de Jun. de 2016
What if I want to open specific sheet?
Nom
Nom el 23 de Sept. de 2019
Thank you so much even today in 2019!
I spent an hour trying to use fopen to open my excel document until I stumbled upon this question!
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 el 18 de Jul. de 2024
Editada: KAE el 18 de Jul. de 2024
This even works to open a CSV file in Excel from within Matlab R2023b, which is what I needed to do. Thanks!

Iniciar sesión para comentar.

Más respuestas (3)

Lingfei Tang
Lingfei Tang el 2 de Sept. de 2018
Editada: Lingfei Tang el 2 de Sept. de 2018

2 votos

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 el 27 de Mzo. de 2013

0 votos

Thank you! Exactly what I was looking for.
noda farfosha
noda farfosha el 12 de Jul. de 2017

0 votos

how can i collect more than workspace in only one?

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Mzo. de 2013

Editada:

KAE
el 18 de Jul. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by