|
[top posting repaired]
In article <gsmv1t$7bl$1@fred.mathworks.com>,
"Marty" <mb1234@gazeta.pl> wrote:
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message
> <gsmtqh$f6k$1@fred.mathworks.com>...
> > "Marty" <mb1234@gazeta.pl> wrote in message
> > <gsmsql$994$1@fred.mathworks.com>...
> > > Is there any way to access on overridden function in Matlab? I have
> > > installed the prTools toolbox, which has it's own definition of
> > > 'dataset'. There is another definition of 'dataset' in the statistics
> > > toolbox - how can I choose which of them I want to use at any particular
> > > moment (changing the order of toolboxes in my path is not a solution)?
> > > Thanks
> >
> > Without changing your path, the only way is to move
> > (via cd) to the directory in question. The current
> > directory is always at the top of your search path.
> >
> > John
>
> Well, I was thinking about it but there is another problem: when I have
> already created some objects of one type, and then I want to create an object
> of this other type, I get an error message:
>
> Cannot redefine class 'dataset' without a call to 'clear classes'.
>
> In other words I am not able to use both types at the same time.
Could you put prTools in a package directory? I haven't done it and I'm
not familiar with prTools, but the general idea would be to put
everything that is part of prTools in a directory called, say,
'+prtools' which is itself in a directory on your path:
<directory on path>/+prtools/<contents of prTools>
Then you could access the prTools dataset with
prtools.dataset(...)
I gather from the documentation on packages that this won't work if
prTools has old-style classes (no classdef statement), but it's worth
looking into.
--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
|