{"id":1069,"date":"2005-09-20T16:48:29","date_gmt":"2005-09-20T21:48:29","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=1069"},"modified":"2014-06-04T16:42:53","modified_gmt":"2014-06-04T20:42:53","slug":"clipboard-to-excel","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2005\/09\/20\/clipboard-to-excel\/","title":{"rendered":"Clipboard to Excel"},"content":{"rendered":"<p>A lot of us MATLAB users hate to admit it, but sometimes circumstances arise and for reasons beyond our control, we need to use Excel.  When that happens it is nice to be able to easily bring your data to Excel.  There are functions that will do that in MATLAB like, <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/xlswrite.html\">XLSWRITE<\/a> or <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/xlsread.html\">XLSREAD<\/a>.  There are products like <a href=\"https:\/\/www.mathworks.com\/products\/excellink\/\">Excel Link<\/a> and <a href=\"https:\/\/www.mathworks.com\/products\/matlabxl\/\">MATLAB Builder for Excel<\/a> that help bring MATLAB and Excel closer together.  <\/p>\n<p>This is great, but what if you want to do something really simple like copy a single matrix from MATLAB and paste it into Excel.  You could always copy it directly from the array editor.  But that is like what, three clicks or something.  Why go through all that work when <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/19975\">Grigor<\/a> has written this script, <a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=8472&amp;objectType=file (link no longer works)\">num2clip<\/a>, that will copy a matrix directly to your clipboard so you can just go paste it without copying it manually.  I am all for making things that much easier.  Also being a function like this allows you to put it into a GUI that you build in MATLAB, adding some nice functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lot of us MATLAB users hate to admit it, but sometimes circumstances arise and for reasons beyond our control, we need to use Excel.  When that happens it is nice to be able to easily bring your&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2005\/09\/20\/clipboard-to-excel\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1069"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":5357,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/1069\/revisions\/5357"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}