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: Michael Goffioul
Subject: Re: Classdef test request under Matlab
Date: Sun, 23 Feb 2014 15:15:18 -0500

On Sun, Feb 23, 2014 at 2:48 PM, vathomas <address@hidden> wrote:
Hi Michael,

Running Matlab 2013b on linux, clA.m in the path and executing the commands
in another directory produces:

>> x = clA

x =

  clA with no properties.

>> h = @x.meth1

h =

    @(varargin)x.meth1(varargin{:})


That's interesting. What happens if you do:

  clear x
  h()

or

  x = 10
  h()

I assume "x" is captured by the anonymous function created, I just want to make sure.

Michael.


reply via email to

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