Get Object Variable Name inside the objects function

5 ビュー (過去 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 Center および File ExchangeVariables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by