How to output class property so that it can be accessed in MATLAB's terminal? In my case, ClassA
stores p
array and shows output like:
ClassA with properties:
p: [3x3 double]
But when I want to access the array, its always says undefined function or variable. Although its public
.
My Code:
classdef Input
properties
p
end
methods
function obj = Input()
[obj.p] = input('Enter array like [a b c; d e f;]');
end
end
end