octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classdef test request under Matlab


From: Laurent Hoeltgen
Subject: Re: Classdef test request under Matlab
Date: Sun, 23 Feb 2014 08:58:07 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 23/02/14 05:19, Michael Goffioul wrote:
> Could someone test the following for me in Matlab?
> 
> Assume you have the following file clA.m in your path:
> 
> classdef clA
>   methods
>     function y = meth1 (this)
>       y = 0;
>     end
>   end
> end
> 
> Restart Matlab, I want to make sure clA.m hasn't been loaded into Matlab.
> Then create a handle to method meth1:
> 
> h = @meth1
> 
> Does Matlab accept that?
> 
> Michael.
> 
> 

Hi,

I placed the file clA.m in ~/Documents/MATLAB, restarted Matlab and
obtained the following:

>> h = @meth1

h =

    @meth1

Running Matlab R2012a on Linux.

Regards,
Laurent





reply via email to

[Prev in Thread] Current Thread [Next in Thread]