clipboard - Copy and paste strings to and from system clipboard

Graphical Interface

As an alternative to clipboard, use the Import Wizard. To use the Import Wizard to copy data from the clipboard, select Paste to Workspace from the Edit menu.

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 it to a string.

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

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

See Also

load, uiimport

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS