How to save a xls file as a mat file?

3 visualizaciones (últimos 30 días)
phdcomputer Eng
phdcomputer Eng el 25 de Feb. de 2019
Respondida: Haritha el 26 de Feb. de 2019
I used this code to save an excel file as a .mat file in matlab.
num = xlsread('Immunotherapy.xls')
save Immunotherapy.mat num
and before using this code, I copied the xls file in matlab project's folder but the program had this error.
Error using xlsread (line 132)
XLSREAD unable to open file 'Immunotherapy.xls'.
File 'C:\Program Files\MATLAB\R2016a\bin\Immunotherapy.xls' not found.
I'll be grateful to have your opinions.

Respuestas (1)

Haritha
Haritha el 26 de Feb. de 2019
Hi,
Use imwrite command instead of savecommand.

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by