MATLAB: Get Object Variable Name inside the objects function

objectoopvariable names

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 😉

Best Answer

I think you are looking for inputname
doc inputname