Clear Filters
Clear Filters

convert xlsread to readcell

2 views (last 30 days)
avram alter
avram alter on 27 Jan 2020
Edited: BN on 27 Jan 2020
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?

Accepted Answer

BN
BN on 27 Jan 2020
Edited: BN on 27 Jan 2020
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

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!