필터 지우기
필터 지우기

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

조회 수: 45 (최근 30일)
Nadia Swastiti
Nadia Swastiti 2020년 9월 8일
댓글: dpb 2020년 9월 8일
My excel file has some sheets, but i only want to import one sheet without first row and first column.
  댓글 수: 1
dpb
dpb 2020년 9월 8일
Use the 'Sheet' and 'Range' optional arguments to readtable or readmatrix
See the doc for examples.

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

답변 (2개)

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

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020년 9월 8일
You should use readmatrix(). For example:
M = readmatrix (filename, 'Sheet', 'MySheet', 'Range','B2:Z10');

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by