{"id":194,"date":"2004-07-21T16:58:16","date_gmt":"2004-07-21T21:58:16","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=194"},"modified":"2004-07-21T16:58:16","modified_gmt":"2004-07-21T21:58:16","slug":"displaying-a-table-in-a-figure","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2004\/07\/21\/displaying-a-table-in-a-figure\/","title":{"rendered":"Displaying a table in a figure"},"content":{"rendered":"I'm often asked how to include a table of numbers in a figure.  While it's possible to use an array of edit boxes, I've always recommended using an ActiveX spreadsheet control as an easier (and more professional looking) solution.  Thing is, when I went to actually do it I had a hard time finding an appropriate control and learning how to use it.\n\nMichael Robbins' <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=3477&amp;objectType=file#\">graph_and_table<\/a> is very helpful for anybody who would like to learn how to use ActiveX to embed a table of numbers in a figure.  Instead of putting together a complete application, Michael wrote an example application that you can use as the basis for your own work.  His code works with 2 different controls, including one that's freely downloadable.  \n\nA couple of small notes - since Michael intended this as a tutorial, do NOT just use the code as is.  To make sure that you look at the code, he puts dummy data in the table.  I also found one small thing that didn't work - the commands to set the font with the free ActiveX control.  Just comment out the lines that say \"set(h.grid,FONTS,'CourierNew');\" and you'll be fine.","protected":false},"excerpt":{"rendered":"<p>I'm often asked how to include a table of numbers in a figure.  While it's possible to use an array of edit boxes, I've always recommended using an ActiveX spreadsheet control as an easier (and more... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2004\/07\/21\/displaying-a-table-in-a-figure\/\">read more >><\/a><\/p>","protected":false},"author":33,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/194"}],"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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}