MATLAB Function Reference | ![]() ![]() |
Copy and paste strings to and from the 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
sets the clipboard contents to clipboard('copy', data)
data
. If data
is not a character array, clipboard uses mat2str
to convert it to a string.
returns the current contents of the clipboard as a string or as an empty string (' '), if the current clipboard content cannot be converted to a string.str = clipboard('paste')
returns the current contents of the clipboard as an array using data = clipboard('pastespecial')
uiimport
.
See Also
![]() | clf | clock | ![]() |