Table properties giving error

1 visualizzazione (ultimi 30 giorni)
Zachary Eilon
Zachary Eilon il 23 Feb 2021
Commentato: Zachary Eilon il 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 Commento
Zachary Eilon
Zachary Eilon il 23 Feb 2021
Note, this error does not appear when I run this on MATLAB 2017b. In that version, the Table properties display fine.

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 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

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by