이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
TF = ISFUNCTION(FUN) returns 1 if FUN is a valid matlab function, and 0 otherwise. Matlab functions can be strings or function handles.
[TF, ID] = ISFUNCTION(FUN) also returns an identier ID. ID can take the following values:
1 : FUN is a function string
2 : FUN is a function handle
0 : FUN is not a function, but no further specification
-1 : FUN is a script
-2 : FUN is not a valid function m-file (e.g., a matfile)
-3 : FUN does not exist (as a function)
-4 : FUN is not a function but something else (a variable)
FUN can also be a cell array, TF and ID will then be arrays.
Examples:
tf = isfunction('lookfor')
% tf = 1
[tf, id] = isfunction({@isfunction, 'sin','qrqtwrxxy',1:4, @clown.jpg})
% -> tf = [ 1 1 0 0 0 ]
% id = [ 2 1 -2 -4 -3 ]
See also function, script, exist, isa, which, nargin, function_handle
인용 양식
Jos (10584) (2026). isfunction(FUN) (https://kr.mathworks.com/matlabcentral/fileexchange/45778-isfunction-fun), MATLAB Central File Exchange. 검색 날짜: .
