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:10:17 -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{:})

>> h()

ans =

     1

>> s.field = x

s =

    field: [1x1 clA]

>> h = @s.field.meth1

h =

    @s.field.meth1

>> h()
Undefined function or variable 's.field.meth1'.

>> a(2,2) = x

a =

  2x2 clA array with no properties.

>> h = @a(2,2).meth1
 h = @a(2,2).meth1
       |
Error: Unbalanced or unexpected parenthesis or
bracket.

>> h()
Undefined function or variable 's.field.meth1'.

>> s.field = a

s =

    field: [2x2 clA]

>> h = @s.field(2,2).meth1
 h = @s.field(2,2).meth1
             |
Error: Unbalanced or unexpected parenthesis or
bracket.

>> h()
Undefined function or variable 's.field.meth1'.

Hope it helps,


Thanks. If you don't mind, could you also do the follow-up to this mail:
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2014-February/039290.html

Michael.


reply via email to

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