Hello,
In Mata, is there a way to "de-reference" (for lack of a better term) a string scalar to return the real object that has a name equal to the value of the string scalar?
For example, if I create mymatrix=J(7,7,32) and I create myscalar="mymatrix", is there any function f, such that f(myscalar)=J(7,7,32)?
Thanks,
Randy
In Mata, is there a way to "de-reference" (for lack of a better term) a string scalar to return the real object that has a name equal to the value of the string scalar?
For example, if I create mymatrix=J(7,7,32) and I create myscalar="mymatrix", is there any function f, such that f(myscalar)=J(7,7,32)?
Thanks,
Randy
Comment