I'm trying to do a proof of concept with MATLAB objects. I want to see if you can use MATLAB objects like the one below in Java code. We need the MATLAB objects to keep state. I've used MATLAB Builder JA to create functions in MATLAB and access them in Java, but I'm not sure if MATLAB classes can be sent the same way.
classdef TestObject < handle
properties (SetAccess = private)
number = 0;
end
methods
function addToNumber(TO, x)
TO.number = TO.number + x;
end
end
end % classdef