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 12:51:40 -0800 (PST)

Hi Michael,

If I run the command sequence without the error the output is:
>> h = @meth1

h = 

    @meth1

>> h()
Undefined function or variable 'meth1'.
 
>> x = clA

x = 

  clA with no properties.

>> h(x)

ans =

     0

Then I introduced a parse error as in the clA.m as:
classdef clA
  methods
    function y = meth1 (this)
      y ! = 0;
    end
  end
end
restarted and ran the same sequence. Results:
>> h = @meth1

h = 

    @meth1

>> h()
Undefined function or variable 'meth1'.
 
>> x = clA
Error using clA
Error: File: clA.m Line: 4 Column: 7
"y" was previously used as a variable, conflicting
with its use here as the name of a function or
command.
See "How MATLAB Recognizes Command Syntax" in the
MATLAB documentation for details.
 
>> h(x)
Undefined function or variable 'x'.

best
Thomas



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


reply via email to

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