System object를 사용하여 블록 구현하기
MATLAB System 블록은 System object를 사용하여 Simulink에서 MATLAB® 알고리즘을 구현합니다. MATLAB System 블록을 사용하려면 먼저 블록과 연결할 System object가 있어야 합니다. System object는 동적 시스템 구현과 시뮬레이션을 위해 특별히 설계된 특수한 종류의 MATLAB 클래스입니다. System object 구현 및 작성에 대한 자세한 내용은 System object 생성하기 항목을 참조하십시오.
블록
MATLAB System | Include System object in model |
도움말 항목
- Create Custom Blocks Using MATLAB System Block and System objects
Implement your own algorithms using System objects.
- 단계 1: Define System Object for Use in Simulink
- 단계 2: Customize MATLAB System Block Appearance
- 단계 3: Customize MATLAB System Block Dialog
- 단계 4: Specify Output Characteristics of MATLAB System Block
- 단계 5: Specify Sample Time for MATLAB System Block System Objects
- 단계 6: Create Moving Average Filter Block with System Object
- Mapping System Object Code to MATLAB System Block Dialog Box
The System object source code controls the appearance of the block dialog box.
- Share Data Between MATLAB System Block and Other Blocks
Share data between MATLAB System and other blocks using the
global
keyword and the Data Store Memory block orSimulink.Signal
object. - Call Simulink Functions from MATLAB System Block
Learn to call a Simulink function from a MATLAB System block.
- Call Python Function Using MATLAB Function and MATLAB System Block
This example shows how to call a Python® function in Simulink® that sorts random numbers using a Python® sorting function and two different blocks: the MATLAB Function block and MATLAB System block.
문제 해결
Troubleshoot System Objects in Simulink
Use these guidelines to troubleshoot System objects in Simulink.