필터 지우기
필터 지우기

How to read in names of function input arguments as strings?

조회 수: 2 (최근 30일)
Rinu
Rinu 2013년 11월 24일
댓글: Rinu 2013년 11월 24일
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!

채택된 답변

Matt J
Matt J 2013년 11월 24일
  댓글 수: 2
Walter Roberson
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) ?
Rinu
Rinu 2013년 11월 24일
Actually, I want my function file to accept an array of filenames as input arguments. I'm using fopen to read in the data of each file. I want to generate a plot using data contained in each input file and I want to output the filenames along with the corresponding plot.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by