함수 내부 검사와 메타데이터
내부 검사를 사용하여 함수에 대한 자세한 정보 가져오기
R2026a 이후
R2026a 이후
내부 검사(introspection)를 사용하여 프로그래밍 방식으로 함수에 대한 정보를 가져올 수 있습니다. 함수 이름에 대해 metafunction을 호출하면 matlab.metadata.Function의 인스턴스가 반환되며, 이를 통해 도움말 텍스트, 함수의 전체 경로 및 네임스페이스, 입력 및 출력 인수에 대한 자세한 정보에 액세스할 수 있습니다. 함수 메타데이터에 액세스하는 방법에 대한 소개는 Access Function Metadata 항목을 참조하십시오.
함수
metafunction | Create metadata object that describes function or method |
클래스
matlab.metadata.Argument | Describe argument of function or method |
matlab.metadata.ArgumentIdentifier | Name and group name of function argument |
matlab.metadata.ArgumentValidation | Describe validation for function argument |
matlab.metadata.ArgumentValidator | Describe argument validation functions applied to function arguments |
matlab.metadata.CallSignature | Describe inputs and outputs of function or method |
matlab.metadata.DefaultArgumentValue | Describe default value of function or method argument |
matlab.metadata.Function | Describe function and its signature |
도움말 항목
- Access Function Metadata
Use function metadata to access information about functions programmatically.
- Check Function Compatibility Using Metadata
Use function metadata to test if the output of one function is compatible with the input of a second function.