Get Object Variable Name inside the objects function

조회 수: 4 (최근 30일)
Vincent
Vincent 2011년 9월 21일
Hi,
I'm searching a way to retrieve an objects name within a function of the object itself (the name of the object in the workspace, not the classname!).
Any ideas? Thanks :)
P.S.: Googling this is really hard, you can imagine the keywords "Object" and "Name" are totally specific to this problem ;)

채택된 답변

Daniel Shub
Daniel Shub 2011년 9월 21일
I think you are looking for inputname
doc inputname

추가 답변 (1개)

Vincent
Vincent 2011년 9월 21일
Thank you, that's exactly what I've been searching for!

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by