Is it possible in MATLAB to have a reference to a fundamental type without wrapping it in a class?
Example:
A = 5;
RefToA = GetRef(A);
RedToA.Value = 10;
A
This should prints 10 not 5.
Are there something like GetRef and .Value?
Is it possible in MATLAB to have a reference to a fundamental type without wrapping it in a class?
Example:
A = 5;
RefToA = GetRef(A);
RedToA.Value = 10;
A
This should prints 10 not 5.
Are there something like GetRef and .Value?