Documentation

clipboard

Copy and paste text to and from system clipboard

Syntax

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

Description

clipboard('copy',data)copiesdatato the clipboard. Ifdatais not a character array, it is converted usingmat2str.

    Note:Theclipboardfunction requires Oracle®Java®software.

txt = clipboard('paste')returns the current contents of the clipboard as a character vector. Ifclipboardcannot convert the contents,txtis empty ('').

data = clipboard('pastespecial')imports the clipboard contents into an array usinguiimport.

See Also

||

Introduced before R2006a

Was this topic helpful?