Why does removing the "sealed" attribute break the class
古いコメントを表示
If I remove the "Sealed" attribute of the table class to try to subclass it, the class is then listed as unsealed in matlab, and I can create a class from it, but I get the following error when calling the table or the subclass constructor:
Method 'display' is not defined for class 'table' or is removed from MATLAB's search path.
2 件のコメント
per isakson
2016 年 3 月 6 日
編集済み: per isakson
2016 年 3 月 6 日
Did you edit file
... datatypes\@table\table.m
in the Matlab installation? Or did you make a copy?
Brian Miller
2016 年 3 月 8 日
回答 (1 件)
Steven Lord
2016 年 3 月 8 日
0 投票
We don't support subclassing the table class -- that's why it's Sealed. Perhaps if you describe what you want to do by subclassing table, we can offer suggestions for a way to achieve that goal without subclassing. Alternately, if there's functionality you believe table is missing that should be added, contact Technical Support and request that your request for this functionality be added to the enhancement request database.
カテゴリ
ヘルプ センター および File Exchange で Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!