%% Copy and Paste Text
% Copy a line of text into the clipboard and then paste it into an array.

clipboard('copy', 'This is the text that I want to copy');
contents = clipboard('paste')

% Copyright 2019 The MathWorks, Inc.