Main Content

putFile

Transfer file from host computer to target hardware

Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.

Description

putFile(hwObj,source) copies the specified file from the MATLAB® current folder to the current folder (pwd) on the NVIDIA® hardware. Wildcards are supported. If the specified file exists in the current folder, putfile overwrites the file.

example

putFile(hwObj,source,destination) copies the file to a destination path.

Examples

collapse all

You can copy a file, such as .profile, from your host computer to the NVIDIA hardware. Use the different file and path conventions of each operating system.

putFile(hwJetson,'C:\Work\.profile','/home/ubuntu/')

Input Arguments

collapse all

Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.

Path and name of file on host computer, specified as a character vector. If a path is not specified, putFile uses the MATLAB current folder. Use the naming conventions of the operating system on the host computer.

Example: 'profile.txt'

Example: 'C:\Users\myusername\Desktop\profile.txt'

Destination folder path, specified as a character vector. Use Linux® naming conventions. The default path is ~/.

Example: '/home/ubuntu'

Version History

Introduced in R2018b