save excel data to matfile.....

i have an excel sheet with 25 rows and 25 column values.... is it possible to save that 25 rows and 25 columns into a matfile.... if yes how to do.... please do reply.....

 Respuesta aceptada

ChristianW
ChristianW el 4 de Mzo. de 2013

1 voto

Reading excel sheet:
doc xlsread
Saving into matfile
doc save

4 comentarios

Elysi Cochin
Elysi Cochin el 4 de Mzo. de 2013
where do include this.... in m-file?? what is doc "is it the name of the excel sheet....
ChristianW
ChristianW el 4 de Mzo. de 2013
Editada: ChristianW el 4 de Mzo. de 2013
Type 'doc xlsread' in the Command Window to open the matlab help/documentation for the function xlsread.
The code in your m-file might be something like this:
num = xlsread('MyExcelFileName.xls')
save MyMatFileName.mat num
Elysi Cochin
Elysi Cochin el 20 de Mzo. de 2013
thank u....
Eka Mariyanti
Eka Mariyanti el 2 de Oct. de 2017
empat = xlsread('4.csv')
save empat.mat empat
xlsread also useful for .csv file

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Preguntada:

el 4 de Mzo. de 2013

Comentada:

el 2 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by