Adding methods to "timetable" class

4 vues (au cours des 30 derniers jours)
bcplay
bcplay le 9 Déc 2018
I am trying to add a method to built-in class "timetable". I was able to do it with other class like "double" by just adding "@double" directory and putting files there. Doesn't seem to work "timetable". Any ideas why is this the case and how to accomplish what I am trying to do?

Réponses (1)

Walter Roberson
Walter Roberson le 10 Déc 2018
>> dbtype timetable 1:2
1 classdef (Sealed) timetable < tabular
So timetable is a Sealed class, which means it does not permit any subclassing. That is likely interferring with you attempting to add additional methods.

Catégories

En savoir plus sur Class File Organization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by