[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nargout for methods
From: |
mmuetzel |
Subject: |
Re: nargout for methods |
Date: |
Wed, 19 Jul 2017 09:35:00 -0700 (PDT) |
Hi Jim,
have you considered inheriting from mvpoly and add your new methods in the
subclass. Something like this might work:
classdef myMVPoly < MVPoly
methods
function [M, v, nevals] = unstable(p, other, args)
yada yada
endfunction
endmethods
endclassdef
I am not sure whether the subclass within a package can have the same name
as the superclass outside of any packages.
When you write "package", do you mean that you store all files in a
"+myPackage" folder? In this case, the constructor of your class should be
called by:
p = myPackage.MVPoly();
Or whatever the name of the "+" folder.
Cheers
Markus
--
View this message in context:
http://octave.1599824.n4.nabble.com/nargout-for-methods-tp4684151p4684162.html
Sent from the Octave - General mailing list archive at Nabble.com.