|
From: | Michael Goffioul |
Subject: | Re: Classdef test request under Matlab |
Date: | Sun, 23 Feb 2014 15:10:17 -0500 |
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,
[Prev in Thread] | Current Thread | [Next in Thread] |