How to save a xls file as a mat file?

조회 수: 1 (최근 30일)
phdcomputer Eng
phdcomputer Eng 2019년 2월 25일
답변: Haritha 2019년 2월 26일
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.

답변 (1개)

Haritha
Haritha 2019년 2월 26일
Hi,
Use imwrite command instead of savecommand.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by