Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

clipboard

Copy and paste text to and from system clipboard

Syntax

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

Description

clipboard('copy',data) copies data to the clipboard. If data is not a character array, it is converted using mat2str.

    Note:   The clipboard function requires Oracle® Java® software.

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

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

See Also

| |

Introduced before R2006a

Was this topic helpful?