how i can have dimension input of a defined function like f ?
조회 수: 2 (최근 30일)
이전 댓글 표시
i have a code that input of its a handle function like f, in duration of this code i need to number of input this function for example f is: f=@(x,y)(x+y)
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2015년 7월 1일
편집: Azzi Abdelmalek
2015년 7월 1일
f=@(x,y)(x+y)
s=func2str(f);
a=regexp(s,'(?<=@\()[\w,]+(?=\))','match')
out=numel(cell2mat(regexp(a,'\w+')))
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Clocks and Timers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!