Main Content

Create MATLAB System Block

To bring the colorSensor System object™ into Simulink®, follow these steps.

  1. Create a new Simulink model.

  2. From the User-Defined Functions library, add the MATLAB System block to the model.

  3. In the block, set the System object name to colorSensor.

  4. Connect the blocks as shown.

    model diagram with output

In the next section, you will Generate Code and Deploy Model to Hardware.

See Also