putFile

Transfer file from host computer to hardware

Description

example

putFile(bbb,source) copies the specified file from the MATLAB® current folder to the current folder (pwd) on the BeagleBone Black hardware. Wildcards are supported.

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

Examples

collapse all

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

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

Input Arguments

collapse all

BeagleBone Black connection created using beaglebone, specified as an object.

Path and name of the file on the host computer. Specify the path as a character vector. You can use an absolute path or a relative path from the MATLAB current folder. Use the path and file naming conventions of the operating system on your host computer.

Example: 'C:\Work\.profile'

Data Types: char

Destination folder path and optional file name, specified as a character vector. Use the Linux® path and file naming conventions. Optional.

Example: '/home/bbb/.profile'

Data Types: char

Introduced in R2015a