Prev: World Ocean Database
Next: singular matrix
From: Matt J on 24 Feb 2010 17:39 XYZ <junk(a)mail.bin> wrote in message <hm48h0$7lm$1(a)news.onet.pl>... > On 2010-02-24 21:22, Matt J wrote: > >> modem.baseclass > ??? Error using ==> modem.baseclass.baseclass at 9 > This is an abstract class. =================== That probably means you should be doing classdef myModFormat < modem.baseclass > > > > > >> How you define whether Matlab class is sealed or not? I could not find > >> any meaningful help on this. > > > > It's a class attribute. If the 1st line in your classdef file looks like > > the following > > > > classdef (Sealed) myClass > > > > then myClass cannot be subclassed. See the MATLAB OOP documentation for > > full details. No classdef inside any m-file in @modem directory and all subdirectories. ============= That won't matter in terms of checking whether or not it is sealed. There is no classdef file for @double either. Nevertheless, I can do the following, which shows that class @double is not sealed. >> ?double ans = meta.class handle Package: meta Properties: Name: 'double' Description: '' DetailedDescription: '' Hidden: 0 Sealed: 0 ConstructOnLoad: 1 InferiorClasses: {0x1 cell} Properties: {[1x1 meta.property]} Methods: {206x1 cell} Events: {0x1 cell} SuperClasses: {0x1 cell} ContainingPackage: {} |