why inputname() does not show any results when for example "objname(1)" is used as input name.
4 次查看(过去 30 天)
显示 更早的评论
If I have a object named 'objname' and its has N-field or elements inside. I can safely call the function with 'objname(1) or objname(2) etc'. 'inputname()' function gives output when just 'objname' is used as input arg. It fails if 'objname(1)' is used as input arg. Any suggestion ?
0 个评论
回答(2 个)
Niraj Gadakari
2017-12-29
Please note that "inputname" function is used to display variable name of the function input.
Also, you cannot call "inputname" from the MATLAB command prompt or in a script you call from the command prompt.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!