call my function by command line
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm working on a MATLAB function which i want to implement on a existing GUI. Now i received the command line that should be used to call my function, but i'm not sure how to implement it in my function. The commandline looks like:
function.exe –r <return directory> <seriesdirectory>
How should i start my function to make it work with this command line?
댓글 수: 0
채택된 답변
Walter Roberson
2014년 1월 20일
function YourFunction( returndir, seriesdir )
and returndir and seriesdir will be strings when the function is called.
Note: you will not be able to name it "function".
댓글 수: 3
Walter Roberson
2014년 1월 21일
if .... whatever condition
seriesdir = 'forward';
else
seriesdir = 'backward';
end
YourFunction(returndir, seriesdir);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!