Table properties giving error

4 次查看(过去 30 天)
I am trying to view a table's properties, and MATLAB is throwing an odd error. This even happens when I am using very stripped-down code. See attached.
clear all
load patients % demo dataset
T = table(LastName,Age,Smoker,Weight); % make a table
summary(T) % table made...
T.Properties.VariableNames % prove Properties are there...
T.Properties % throws error!
  1 个评论
Zachary Eilon
Zachary Eilon 2021-2-23
Note, this error does not appear when I run this on MATLAB 2017b. In that version, the Table properties display fine.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2021-2-23
You have a third-party function named split on your MATLAB path.
which -all split
/MATLAB/toolbox/matlab/strfun/split.m split is a built-in method % Shadowed string method split is a Java method % Shadowed java.lang.String method /MATLAB/toolbox/matlab/bigdata/@tall/split.m % Shadowed tall method /MATLAB/toolbox/matlab/datatypes/calendarDuration/@calendarDuration/split.m % Shadowed calendarDuration method /MATLAB/toolbox/wavelet/wavedemo/@wtree/split.m % Shadowed wtree method /MATLAB/toolbox/wavelet/wavedemo/@edwttree/split.m % Shadowed edwttree method /MATLAB/toolbox/wavelet/wavedemo/@rwvtree/split.m % Shadowed rwvtree method /MATLAB/toolbox/wavelet/wavelet/@dtree/split.m % Shadowed dtree method /MATLAB/toolbox/wavelet/wavelet/@wdectree/split.m % Shadowed wdectree method /MATLAB/toolbox/wavelet/wavelet/@wptree/split.m % Shadowed wptree method /MATLAB/examples/wavelet/data/@wtree/split.m % Shadowed wtree method /MATLAB/examples/wavelet/data/@edwttree/split.m % Shadowed edwttree method /MATLAB/examples/wavelet/data/@rwvtree/split.m % Shadowed rwvtree method

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by