convert xlsread to readcell

조회 수: 5 (최근 30일)
avram alter
avram alter 2020년 1월 27일
편집: BN 2020년 1월 27일
i have a code that uses xlsread, in a bit of an awkward way:
addpath('C:\Users\Administrator\Dropbox (********)\******** Team Folder\Matlab\RFID chip reader\RfidChipData');
% location of stored master tags
[~,~,TrueValMat] = xlsread('RfidChipTrueValues.xlsx', 'Experiment 1'); % reads our excel file into the proper format
I have heard xlsread is not the preferred method, and may cause issues down the line. how can I convert this to readcell?

채택된 답변

BN
BN 2020년 1월 27일
편집: BN 2020년 1월 27일
You can use readtable which in my opinion it's the best way to read excel files.
excel_file = readtable('RfidChipTrueValues.xlsx');
Experiment_1 = excel_file.Experiment 1

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by