フィルターのクリア

Table properties giving error

3 ビュー (過去 30 日間)
Zachary Eilon
Zachary Eilon 2021 年 2 月 23 日
コメント済み: Zachary Eilon 2021 年 2 月 23 日
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
  1 件のコメント
Zachary Eilon
Zachary Eilon 2021 年 2 月 23 日
Thank you so much - good catch!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by