Filter löschen
Filter löschen

Table properties giving error

4 Ansichten (letzte 30 Tage)
Zachary Eilon
Zachary Eilon am 23 Feb. 2021
Kommentiert: Zachary Eilon am 23 Feb. 2021
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 Kommentar
Zachary Eilon
Zachary Eilon am 23 Feb. 2021
Note, this error does not appear when I run this on MATLAB 2017b. In that version, the Table properties display fine.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Feb. 2021
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

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by