필터 지우기
필터 지우기

"readtable" equivalent in Matlab 2013

조회 수: 19 (최근 30일)
Isma
Isma 2015년 8월 28일
댓글: Isma 2015년 8월 28일
Hi
I 'd like to import a data (with different data types) into a table using "readtable", but i get:
readtable('nav.data')
Undefined function 'readtable' for input arguments of type 'char'.
Is it because "readtable()" is not a built-in function in matlab 2013? is there an equivalent function? Actually, I've found "readtable" convenient as it automatically takes account of data of different types (see http://fr.mathworks.com/help/matlab/ref/readtable.html ) .
Looking for alternatives so as to read my file.csv (including headers, etc.)
Best,
  댓글 수: 2
Brendan Hamm
Brendan Hamm 2015년 8월 28일
You could take a look at xlsread, but if you do not have read table then you do not have access to the table variable type. So, xlsread will return you numeric data in your first output (matrix), textual data in your second output (cell array) and all of the data in your 3rd output (cell array). If you have the Statistics Toolbox you can then put this into a dataset array (which is similar to a table), otherwise your column headers and data will need to be stored separately.
Isma
Isma 2015년 8월 28일
Thanks, but i was more curious to know about Tables in MATLAB as i used to being familiar with them in C# for data manipulation purposes. cheers, anyway.

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

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 28일
Tables were introduced in R2013b.
  댓글 수: 1
Isma
Isma 2015년 8월 28일
Glad to know about it. Cheers.

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

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by