function cell2table undefined in my matlab?

Hi Guys,
I was trying to follow the introduction of the help files. However, when I got to the table part, even though I directly copied the codes from the instruction:
cellPatients = {'LastName','Gender','Age','Height','Weight',...
'Smoker','Systolic','Diastolic';
'Edwards','Male',42,70,158,0,116,83;
'Falk','Female',28,62,125,1,120,71};
T2 = cell2table(cellPatients(2:end,:));
I got this error message:
Undefined function 'cell2table' for input arguments of type 'cell'.
What is happening here and how can I fix it?
Thank you guys,
Jixin

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 6 月 26 日

0 投票

Tables were released in R2013b.
So, yes, upgrade to R2013b or R2014a.

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

質問済み:

2014 年 6 月 26 日

回答済み:

2014 年 6 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by