This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

deploy

Deploy MATLAB function on hardware

Syntax

deploy(targetObj,functionName)

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™.

Introduced in R2018b