How to import excel file only one sheet and skip first column?

31 次查看(过去 30 天)
My excel file has some sheets, but i only want to import one sheet without first row and first column.

回答(2 个)

Xavier
Xavier 2020-9-8
opts.Sheet = 'yourSheetName';
T = readtable('youWorkbook.xlsx',opts);
T(1, :) = [];
T(:, 1) = []

Abdolkarim Mohammadi
You should use readmatrix(). For example:
M = readmatrix (filename, 'Sheet', 'MySheet', 'Range','B2:Z10');

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by