how will we convert xls files into mat files please help me

68 visualizaciones (últimos 30 días)
varunesh
varunesh el 4 de Sept. de 2013
Comentada: arun anoop m el 27 de Jul. de 2020
how will we convert xls files into mat files? please help me
  1 comentario
Image Analyst
Image Analyst el 20 de Abr. de 2014
Original question in case varunesh deletes it:
how will we convert xls files into mat files? please help me

Iniciar sesión para comentar.

Respuesta aceptada

kei hin
kei hin el 4 de Sept. de 2013
Try this
file = dir('*.xl*'); %dir excel
filename = file.name; %filename_excel
excel_path = [pwd, '\', filename]; %get the path of the excel
[ndata, headertext] = xlsread(excel_path); %read the data from the excel
save('a.mat','ndata'); %save to a.mat
  1 comentario
arun anoop m
arun anoop m el 27 de Jul. de 2020
No sir , it wont work. Whichever XLS file u convert,
just try
whos -file filename.mat
you can see both filename.xls and filename.mat not same.
Better goto MATLAB. Go to workspace. Click on that . RIght corner down arrow, then click 'new'. And fill features values. And save workspace. It give filename.mat file.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by