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 日

0 投票

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 件)

製品

リリース

R2019b

質問済み:

2020 年 1 月 27 日

編集済み:

BN
2020 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by