Contenido principal

deploy

Deploy MATLAB function on hardware

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.

  • To generate C/C++ code for this function, you must have an Embedded Coder® license.

example

Examples

collapse all

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

Note

For Raspberry Pi with 32-bit OS use targetHardware('Raspberry Pi') and for 64-bit OS use targetHardware('Raspberry Pi (64bit)').

targetObj = targetHardware('Raspberry Pi (64bit)');
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.

Note

For Raspberry Pi with 32-bit OS use targetHardware('Raspberry Pi') and for 64-bit OS use targetHardware('Raspberry Pi (64bit)').

Example: 'Raspberry Pi (64bit)'

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

expand all

Version History

Introduced in R2018b