From: us on
"Tom " <stoltzo(a)gmail.com> wrote in message <hrcvr1$o0p$1(a)fred.mathworks.com>...
> Maybe I just need to use "persistent"?

no...
which ML version do you have(?)...

us
From: Tom on
"us " <us(a)neurol.unizh.ch> wrote in message <hrd27c$q6u$1(a)fred.mathworks.com>...
> "Tom " <stoltzo(a)gmail.com> wrote in message <hrcvr1$o0p$1(a)fred.mathworks.com>...
> > Maybe I just need to use "persistent"?
>
> no...
> which ML version do you have(?)...
>
> us

Hi US

You did a very fine job answering my question - thanks! :)

I'm using R2008B. I'm guessing that returning the object as you describe will create a lot of overhead in the processing time. I will check that out now....hopefully I'm wrong.

Thanks again for your effort in explaining me the details

Best Regards
Thomas
From: Loren Shure on
In article <hremfs$69p$1(a)fred.mathworks.com>, stoltzo(a)gmail.com says...
> "us " <us(a)neurol.unizh.ch> wrote in message <hrd27c$q6u$1(a)fred.mathworks.com>...
> > "Tom " <stoltzo(a)gmail.com> wrote in message <hrcvr1$o0p$1(a)fred.mathworks.com>...
> > > Maybe I just need to use "persistent"?
> >
> > no...
> > which ML version do you have(?)...
> >
> > us
>
> Hi US
>
> You did a very fine job answering my question - thanks! :)
>
> I'm using R2008B. I'm guessing that returning the object as you describe will create a lot of overhead in the processing time. I will check that out now....hopefully I'm wrong.
>
> Thanks again for your effort in explaining me the details
>
> Best Regards
> Thomas
>

See David's answer about handle classes. OR make sure you call the
filtering with a left-hand side (the updated object) and use that for
the next step.

--
Loren
http://blogs.mathworks.com/loren
http://matlabwiki.mathworks.com/MATLAB_FAQ
From: us on
"Tom " <stoltzo(a)gmail.com> wrote in message <hremfs$69p$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <hrd27c$q6u$1(a)fred.mathworks.com>...
> > "Tom " <stoltzo(a)gmail.com> wrote in message <hrcvr1$o0p$1(a)fred.mathworks.com>...
> > > Maybe I just need to use "persistent"?
> >
> > no...
> > which ML version do you have(?)...
> >
> > us
>
> Hi US
>
> You did a very fine job answering my question - thanks! :)
>
> I'm using R2008B. I'm guessing that returning the object as you describe will create a lot of overhead in the processing time. I will check that out now....hopefully I'm wrong.
>
> Thanks again for your effort in explaining me the details
>
> Best Regards
> Thomas

well... :-)
given your version, i'd implement a SET/GET interface for properties by making the class a subclass of the HGSETGET subclass...
(even if your class never does anything graphical)

classdef your_class < hgsetget

see

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfyl44-1.html

for an explanation on what it does...
us
From: Tom on
"us " <us(a)neurol.unizh.ch> wrote in message <hretio$s3h$1(a)fred.mathworks.com>...
> "Tom " <stoltzo(a)gmail.com> wrote in message <hremfs$69p$1(a)fred.mathworks.com>...
> > "us " <us(a)neurol.unizh.ch> wrote in message <hrd27c$q6u$1(a)fred.mathworks.com>...
> > > "Tom " <stoltzo(a)gmail.com> wrote in message <hrcvr1$o0p$1(a)fred.mathworks.com>...
> > > > Maybe I just need to use "persistent"?
> > >
> > > no...
> > > which ML version do you have(?)...
> > >
> > > us
> >
> > Hi US
> >
> > You did a very fine job answering my question - thanks! :)
> >
> > I'm using R2008B. I'm guessing that returning the object as you describe will create a lot of overhead in the processing time. I will check that out now....hopefully I'm wrong.
> >
> > Thanks again for your effort in explaining me the details
> >
> > Best Regards
> > Thomas
>
> well... :-)
> given your version, i'd implement a SET/GET interface for properties by making the class a subclass of the HGSETGET subclass...
> (even if your class never does anything graphical)
>
> classdef your_class < hgsetget
>
> see
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfyl44-1.html
>
> for an explanation on what it does...
> us

That's great to know!

I will get the latest Matlab version later today along with my new laptop. Should I then disregard this advice of yours and do something else?

Thanks again for your kind and informative support!
Thomas
First  |  Prev  | 
Pages: 1 2
Prev: Polynomial roots
Next: FFT DNA