Main Content

deploy

Deploy MATLAB function on hardware

Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.

Description

deploy(targetObj,functionName) deploys the MATLAB® function as a standalone executable on the hardware. When deploying the function, MATLAB generates a deployment report. The report contains the information about the deployment status. Use the report to debug the function and verify that the function is suitable for deployment.

Note

The MATLAB function to be deployed must not have any input or output arguments.

Examples

collapse all

Create a targetHardware object, and then deploy the raspberrypi_edgedetection function on the Raspberry Pi® hardware.

targetObj = targetHardware('Raspberry Pi');
deploy(targetObj,'raspberrypi_edgedetection');
Code generation successful: View report

Input Arguments

collapse all

The configuration object of the hardware, specified as a targetHardware object.

Use the targetHardware function to create this object.

Example: Raspberry Pi

Data Types: char

Name of the MATLAB function to be deployed on the hardware.

Note

The function must not have any input or output arguments.

Example: raspberrypi_edgedetection

Data Types: char

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2018b