Is it possible to make alias for a variable?

27 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 25 de Sept. de 2015
Respondida: James Tursa el 25 de Sept. de 2015
I would like to use a more convenient name for a variable, and keep the old name also, but I don't want to make a real copy. So it is possible to make an alias?
  1 comentario
dpb
dpb el 25 de Sept. de 2015
Create the useful name first, maybe???
There is no equivalent of EQUIVALENCE nor any other way to do this in Matlab that I'm aware of.

Iniciar sesión para comentar.

Respuestas (2)

WAT
WAT el 25 de Sept. de 2015
Editada: WAT el 25 de Sept. de 2015
The short answer is no, you're describing something similar to a pointer.

James Tursa
James Tursa el 25 de Sept. de 2015
The closest thing in MATLAB to this might be a classdef object derived from handle, where multiple variables actually "point" to the same data.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by