Is it possible to make alias for a variable?

27 次查看(过去 30 天)
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 个评论
dpb
dpb 2015-9-25
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.

请先登录,再进行评论。

回答(2 个)

WAT
WAT 2015-9-25
编辑:WAT 2015-9-25
The short answer is no, you're describing something similar to a pointer.

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

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by