A basic extension to the existing MATLAB function clipboard.m. This function allows a numerical array of any size to be copied to the clipboard ready for pasting (to say Word or Excel).
The array is copied as a tab-separated string with carriage-returns separating subsequent rows.
I suspect someone may have created this already but I can't find anything on the exchange. Sorry if I am duplicating code.
Grigor Browning (2021). num2clip: copy numerical arrays to clipboard (https://www.mathworks.com/matlabcentral/fileexchange/8472-num2clip-copy-numerical-arrays-to-clipboard), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!