|
From: | John W. Eaton |
Subject: | Re: need help with function handle tests |
Date: | Tue, 10 Mar 2020 23:40:15 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 3/10/20 10:04 PM, Kai Torben Ohlhus wrote:
The following output is from R2019a:testscriptordfun: 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.
Thanks. After running the test script, what happens if you do %% Move out of other-dir where nonexistent_fun.m is located cd .. %% Does fh_missing still point to other-dir/nonexistent_fun? fh_missing (); functions (fh_missing) ?I'm sure I'll have more questions and will probably post another version of the script.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |