필터 지우기
필터 지우기

Is it possible to make alias for a variable?

조회 수: 28 (최근 30일)
Mr M.
Mr M. 2015년 9월 25일
답변: James Tursa 2015년 9월 25일
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에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by