readmatrix command is not working.

26 Ansichten (letzte 30 Tage)
Hassan Rizvi
Hassan Rizvi am 27 Okt. 2022
Kommentiert: Star Strider am 27 Okt. 2022
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

Akzeptierte Antwort

Star Strider
Star Strider am 27 Okt. 2022
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 Kommentare
Hassan Rizvi
Hassan Rizvi am 27 Okt. 2022
Thanks Sir
Star Strider
Star Strider am 27 Okt. 2022
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by