convert xlsread to readcell

6 次查看(过去 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 中查找有关 Data Import and Analysis 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by