[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need test for handles to classdef methods run in Matlab
From: |
PhilipNienhuis |
Subject: |
Re: Need test for handles to classdef methods run in Matlab |
Date: |
Sat, 23 Mar 2019 04:31:53 -0500 (CDT) |
John W. Eaton wrote
> I'm attaching a simple classdef file, mycls.m, and need the following
> tests run with it in a recent version of Matlab:
> <snip>
> You should run the tests individually instead of in a script as there
> may be errors and I need to see all the results, not just up to the
> first error.
Matlab r2019a prerelease:
>> format compact
>> obj = mycls ();
>> obj.meth (1)
meth
varargin =
1×2 cell array
{1×1 mycls} {[1]}
>> mycls.smeth (1)
smeth
varargin =
1×1 cell array
{[1]}
>> obj.smeth (1)
smeth
varargin =
1×1 cell array
{[1]}
>> fh = @obj.meth;
>> fh(2)
meth
varargin =
1×2 cell array
{1×1 mycls} {[2]}
>> fh = @mycls.smeth;
>> fh (2)
smeth
varargin =
1×1 cell array
{[2]}
>> fh = @obj.smeth;
>> fh (2)
smeth
varargin =
1×1 cell array
{[2]}
>>
Philip
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html