The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: About inheritance in Matlab
Replies: 1   Last Post: Jan 28, 2013 9:58 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: About inheritance in Matlab
Posted: Jan 28, 2013 9:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Alafm " <> wrote in message
> Hello,
> I want to implement my own class "GriddedInterpolant" in order to execute
> some tasks faster. Indeed, the matlab class "Gridded Interpolant" is quite
> fast but I want to change some extrapolation properties for example &
> other stuffs. I have noticed that the implementation of this class is not
> available and the inhéritance is not allowed for this class. When trying
> to create my own class from the Matlab one, the following error occurs :
> "Class griddedInterpolant is sealed and may not be used as a superclass".
> Is there any mean to tackle this issue & to use some specific properties
> of this class for my own purpose?

Since it's Sealed you cannot subclass it. The best you could do would be to
create your own class that contains a GriddedInterpolant object and write
methods that simply call the appropriate GriddedInterpolant methods after
doing your special extrapolation handling.

If you feel that your modifications would be of use to others, feel free to
submit your suggestions to Technical Support as enhancement requests.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.