How to read in names of function input arguments as strings?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Matt J
2013년 11월 24일
doc inputname
댓글 수: 2
Walter Roberson
2013년 11월 24일
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) ?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!