MATLAB Answers

convert xlsread to readcell

조회 수: 19(최근 30일)
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?

  댓글 수: 0

로그인 to comment.

채택된 답변

Behzad Navidi
Behzad Navidi 27 Jan 2020
편집: Behzad Navidi 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

  댓글 수: 0

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.




Translated by