Table properties giving error

1 visualización (últimos 30 días)
Zachary Eilon
Zachary Eilon el 23 de Feb. de 2021
Comentada: Zachary Eilon el 23 de Feb. de 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 comentario
Zachary Eilon
Zachary Eilon el 23 de Feb. de 2021
Note, this error does not appear when I run this on MATLAB 2017b. In that version, the Table properties display fine.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 23 de Feb. de 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

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by