0

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?

Humam Helfawi
  • 19,566
  • 15
  • 85
  • 160

0 Answers0