Quantcast

Documentation Center

  • Trial Software
  • Product Updates

clipboard

Copy and paste strings to and from system clipboard

Syntax

clipboard('copy', data)
str = clipboard('paste')
data = clipboard('pastespecial')

Description

clipboard('copy', data) sets the clipboard contents to data. If data is not a character array, the clipboard uses mat2str to convert data to a string.

str = clipboard('paste') returns the current contents of the clipboard as a string or, if MATLAB® cannot convert the current clipboard contents to a string, as an empty string (' ').

data = clipboard('pastespecial') returns the current contents of the clipboard as an array by using uiimport.

Definitions

The clipboard function requires Oracle® Java® software.

See Also

| |

Was this topic helpful?