why inputname() does not show any results when for example "objname(1)" is used as input name.
Mostrar comentarios más antiguos
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 ?
Respuestas (2)
Niraj Gadakari
el 29 de Dic. de 2017
0 votos
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.
Maniraj M
el 8 de En. de 2018
0 votos
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!