Simulink 함수
Simulink® 함수는 입력이 제공될 경우 출력을 계산하는 계산 유닛입니다. Simulink 함수는 함수 정의 및 함수 호출자에 대한 하나의 공통된 텍스트 인터페이스를 제공하므로 함수를 어떻게 정의할지는 사용자의 선택입니다. 함수는 다음과 같은 방법으로 정의할 수 있습니다.
Simulink Function 블록에 있는 Simulink 블록
내보낸 Stateflow® 그래픽 함수에 있는 Stateflow 상태 천이
내보낸 Stateflow MATLAB 함수에 있는 MATLAB® 코드 문
함수를 정의한 후에는 Function Caller 블록, MATLAB Function 블록 또는 Stateflow 차트를 사용하여 호출할 수 있습니다.

블록
도움말 항목
- Simulink Functions Overview
Functions in a Simulink model that share a common text interface with function callers.
- Add a Simulink Function to a Model
Define a Simulink function using a Simulink Function block or an exported graphical or MATLAB function from a Stateflow chart.
- Call a Simulink Function from a Model
Call a Simulink function from a Simulink model using a Function Caller block, a MATLAB Function block, or a Stateflow chart.
- Simulink Function Blocks in Referenced Models
Add and access functions in model components.
- Call Simulink Functions in Other Models Using Function Ports
Use function ports to call a Simulink function in one referenced model from another referenced model.
- Scoped, Global, and Port-Scoped Simulink Function Blocks Overview
Specify visibility and access of Simulink Function blocks.
- Scoped Simulink Function Blocks in Subsystems
Limit the scope of a function to a subsystem.
- Scoped Simulink Function Blocks in Models
Limit the scope of a function to a model.
- Diagnostics Using a Client-Server Architecture
Create a diagnostic service with functions where callers pass an error code.
- Service-Oriented Sensor Modeling (System Composer)
Use a service interface to call services from multiple instances of a referenced component.