| MATLAB Function Reference | ![]() |
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.
clipboard('copy', data)
str = clipboard('paste')
data = clipboard('pastespecial')
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.
Note Requires an active X display on UNIX® platforms, and Java™ on other platforms. (UNIX is a registered trademark of The Open Group in the United States and other countries). |
![]() | clf | clock | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |