I nead help, xlsread(file,-1).
이전 댓글 표시
from doc:
[num,txt,raw] = xlsread(filename,-1) opens an Excel window to interactively select data. Select the worksheet, drag and drop the mouse over the desired range, and click OK.
How can I save this selected area (ex ‘A3:AB187’ or other) to use as a variable.I wont read in the same area (ex ‘A3:AB187’ or other) with multiple files.
Thanks,
Jola
댓글 수: 3
Ahmed Elkady
2012년 8월 1일
%% Read Data from Excel Files
FileName = 'XFileName.xlsm';
SheetNo = 'Sheet1';
DataRange = 'T4..X259';
VariableName = xlsread (FileName, SheetNo, DataRange);
Jola P
2012년 8월 1일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!