[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Another request for classdef test in Matlab
From: |
Michael Goffioul |
Subject: |
Another request for classdef test in Matlab |
Date: |
Fri, 4 Jan 2013 17:26:12 -0500 |
Can anyone test the following in Matlab.
Have a class defined in ClassA.m as:
classdef ClassA < handle
properties
x = 1;
end
methods
function obj = ClassA (x)
obj.x = x;
end
end
At the prompt, execute:
a(2,2) = ClassA (2)
a.x <===== note that this might fail, I don't know
a(1,1).x, a(2,2).x
a(1,1) == a(1,2)
h = a(1,1)
h.x = 3
a(1,1).x, h.x
Michael.
- Another request for classdef test in Matlab,
Michael Goffioul <=
- Re: Another request for classdef test in Matlab, Ben Abbott, 2013/01/04
- Re: Another request for classdef test in Matlab, Michael Goffioul, 2013/01/04
- Re: Another request for classdef test in Matlab, Michael D. Godfrey, 2013/01/04
- Re: Another request for classdef test in Matlab, Ben Abbott, 2013/01/04
- Re: Another request for classdef test in Matlab, Michael Goffioul, 2013/01/04
- Re: Another request for classdef test in Matlab, Philip Nienhuis, 2013/01/04
- Re: Another request for classdef test in Matlab, Ben Abbott, 2013/01/04
- Re: Another request for classdef test in Matlab, Ben Abbott, 2013/01/04
- Re: Another request for classdef test in Matlab, Philip Nienhuis, 2013/01/04
- Re: Another request for classdef test in Matlab, Michael Goffioul, 2013/01/04