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: vathomas
Subject: Re: Classdef test request under Matlab
Date: Sun, 23 Feb 2014 11:48:31 -0800 (PST)

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,

Thomas



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Classdef-test-request-under-Matlab-tp4662191p4662204.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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