필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I wnat to import numerous sheets of excel file.

조회 수: 1 (최근 30일)
JIN-HWA JEONG
JIN-HWA JEONG 2016년 4월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
If there is 5 sheets of excel file,
I want to see like this in workspace of MATLAB used for function.
------------Workspace---------------
data_1 = data of 1 sheet in excel
data_2 = data of 2 sheet in excel
data_3 = data of 3 sheet in excel
data_4 = data of 4 sheet in excel
data_5 = data of 5 sheet in excel
is it corret code? What is wrong?
for i=1:5 data_i = xlsread ('Merged',i) end

답변 (2개)

KSSV
KSSV 2016년 4월 29일
for sheet = 1:5 data = xlsread(filename,sheet) end

Image Analyst
Image Analyst 2016년 4월 29일
Try this
data_1 = xlsread ('Merged.xlsx', 1);
data_2 = xlsread ('Merged.xlsx', 2);
data_3 = xlsread ('Merged.xlsx', 3);
data_4 = xlsread ('Merged.xlsx', 4);
data_5 = xlsread ('Merged.xlsx', 5);

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by