How to save a xls file as a mat file?

3 ビュー (過去 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 Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by