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.

putFile

Transfer file from host computer to target hardware

Syntax

putFile(hwObj,source)
putFile(hwObj,source,destination)

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.

example

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

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/.profile')

Input Arguments

collapse all

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

Use the jetson or the drive function to create this connection.

Path and file name on the NVIDIA hardware, specified as a string. You can use either the absolute path from the root folder, or the relative path from the present working folder. Use Linux® path and file naming conventions. The default path is ~/.

Example: '.profile'

Example: '/home/ubuntu/.profile'

Data Types: char

Path and name of file on host computer, specified as a string. If not specified, getFile uses the MATLAB Current folder and the current file name. Use the naming conventions of the operating system on the host computer. This function does not create folders. Folders in the path must exist.

Example: 'C:\Users\myusername\Desktop'

Data Types: char

Introduced in R2018b