readmatrix command is not working.

조회 수: 36 (최근 30일)
Hassan Rizvi
Hassan Rizvi 2022년 10월 27일
댓글: Star Strider 2022년 10월 27일
Hello!
I am here trying to import a test.csv file into the workspace environment of MATLAB. for this reason I used readmatrix command but it shows the error that says, 'undefined variable or function readmatrix'. I decided to use readtable but it gives table datatype, I want array data type for this purpose I used table2array command but it increases the lines of code and increases redundancy in the code.
Please help

채택된 답변

Star Strider
Star Strider 2022년 10월 27일
The readtable function was introduced in R2013b, and the readmatrix funciton in R2019a.
If you do not have readmatrix, see if the xlsread function will do what you want.
  댓글 수: 2
Hassan Rizvi
Hassan Rizvi 2022년 10월 27일
Thanks Sir
Star Strider
Star Strider 2022년 10월 27일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by