MATLAB Function Reference |
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 Special from the Edit menu.
Syntax
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
clf | clock |
© 1994-2005 The MathWorks, Inc.