[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help with function handle tests
From: |
Kai Torben Ohlhus |
Subject: |
Re: need help with function handle tests |
Date: |
Wed, 11 Mar 2020 11:04:37 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 3/11/20 6:31 AM, John W. Eaton wrote:
> I'm trying to get a better understanding of function handles so I can
> properly fix bugs #57439 and #57941 (at least).
>
> Could someone please run the attached testscript.m file in a recent
> version of Matlab and report the result to me?
>
> If there are errors, please make a note of what the errors are and
> include that with your info, then comment out any lines that cause
> trouble so I can see all the things that work as I expect.
>
> Please also correct the code if I have any errors with the handles to
> class methods as I'm not sure exactly how those are supposed to work.
>
> To run the tests, unpack the attached tar file, then in Matlab, cd to
> the top-level directory (fhdl-tests) that contains the testscript.m file
> and execute
>
> testscript
>
> at the Matlab prompt.
>
> Thanks,
>
> jwe
>
The following output is from R2019a:
>> testscript
ordfun: 1.000000
fh_anon: -0.000000
privfun: 1.000000
subfun: 1.000000
pkgfun: 1.000000
myclass.lcl: 1.000000
Error using myclass.stat_meth
Too many input arguments.
Error in testscript (line 25)
fh_stat_meth (x);
NOTE: @myclass.stat_meth does not have any input parameters. Same error
in (line 76).
Change testscript (line 25 and 76) fh_stat_meth ();
Then no further errors. Great work! Verbose output attached.
Kai
fhdl-tests.output.txt
Description: Text document
- need help with function handle tests, John W. Eaton, 2020/03/10
- Re: need help with function handle tests,
Kai Torben Ohlhus <=
- Re: need help with function handle tests, John W. Eaton, 2020/03/10
- Re: need help with function handle tests, Kai Torben Ohlhus, 2020/03/11
- Re: need help with function handle tests, John W. Eaton, 2020/03/11
- Re: need help with function handle tests, Kai Torben Ohlhus, 2020/03/11
- Re: need help with function handle tests, John W. Eaton, 2020/03/13
- Re: need help with function handle tests, Ray Daniel Zimmerman, 2020/03/16
- Re: need help with function handle tests, John W. Eaton, 2020/03/16
- Re: need help with function handle tests, Ray Daniel Zimmerman, 2020/03/16
- Help needed with function handles (was: Re: need help with function handle tests), John W. Eaton, 2020/03/17