Get Object Variable Name inside the objects function

5 Ansichten (letzte 30 Tage)
Vincent
Vincent am 21 Sep. 2011
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 ;)

Akzeptierte Antwort

Daniel Shub
Daniel Shub am 21 Sep. 2011
I think you are looking for inputname
doc inputname

Weitere Antworten (1)

Vincent
Vincent am 21 Sep. 2011
Thank you, that's exactly what I've been searching for!

Kategorien

Mehr zu Variables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by