How to import excel file only one sheet and skip first column?
조회 수: 80(최근 30일)
표시 이전 댓글
My excel file has some sheets, but i only want to import one sheet without first row and first column.
댓글 수: 1
dpb
2020년 9월 8일
Use the 'Sheet' and 'Range' optional arguments to readtable or readmatrix
See the doc for examples.
답변(2개)
Xavier
2020년 9월 8일
opts.Sheet = 'yourSheetName';
T = readtable('youWorkbook.xlsx',opts);
T(1, :) = [];
T(:, 1) = []
댓글 수: 0
Abdolkarim Mohammadi
2020년 9월 8일
You should use readmatrix(). For example:
M = readmatrix (filename, 'Sheet', 'MySheet', 'Range','B2:Z10');
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!