How to read in names of function input arguments as strings?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there any way I can read in the names of input arguments of function m-files as strings? I have a function m-file: function ([inarg1 inarg2 inarg3]) ... I need the names of the input arguments to display in the output plot. Thanks!
0 commentaires
Réponse acceptée
Matt J
le 24 Nov 2013
doc inputname
2 commentaires
Walter Roberson
le 24 Nov 2013
Do you want the names of the variables that users passed in to the call, or do you want to know, "for this function I am executing now, what the names are that I gave the the dummy arguments" (e.g., for producing help information) ?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!