Creating Mat file using execl file

조회 수: 1 (최근 30일)
Davide Di Pasquale
Davide Di Pasquale 2018년 6월 14일
댓글: Yuvaraj Venkataswamy 2018년 6월 14일
I have an excel file containing numbers in five columns and several rows. Each column represents a variable.How I can generate a mat file that recognise the varaibles? And how to call the variables for the mat file generated?

채택된 답변

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018년 6월 14일
Use below commands.
if true
Input=xlsread('your_file.xls');
save Input.mat
end
  댓글 수: 3
Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018년 6월 14일
Use this,
if true
load('Input.mat')
end
Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018년 6월 14일
Then can define it as variable like below,
A=input;
Then use it for further processing.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by