{"id":2534,"date":"2010-02-12T13:15:48","date_gmt":"2010-02-12T13:15:48","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2010\/02\/12\/41-complete-gui-examples\/"},"modified":"2015-03-09T17:56:59","modified_gmt":"2015-03-09T21:56:59","slug":"41-complete-gui-examples","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2010\/02\/12\/41-complete-gui-examples\/","title":{"rendered":"41 Complete GUI Examples"},"content":{"rendered":"<div class=\"content\">\r\n\r\n<a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021\">Bob<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/24861-41-complete-gui-examples\">41 Complete GUI Examples<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/17055\">Matt Fig<\/a>.\r\n\r\n&nbsp;\r\n\r\nIf you like example GUIs, don't miss this one. Or the other forty for that matter. I'm not going to review them all. You can\r\nrun through them all in a few minutes if you just spend a few seconds playing with each. Just run <tt>previewGUIs<\/tt> to get started and click \"continue\" on his bonus GUI. (Does that count as a 42nd GUI?)\r\n\r\n<img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/runthrough.png\" alt=\"\" hspace=\"5\" vspace=\"5\" \/>\r\n\r\nYou can also refer to his Usage_notes.pdf and contents.html files. Use these to aid navigation and find your favorite number. Then open it in MATLAB's Editor to see how he made it work.\r\n\r\nThanks, Matt!\r\n\r\n<i>Note: This submission was also featured on <a href=\"https:\/\/blogs.mathworks.com\/videos\/2009\/08\/06\/gui-tutorials-from-the-file-exchange\/\">Doug\u2019s MATLAB Video Tutorials<\/a> last year but Matt has added more GUI examples since then.<\/i>\r\n\r\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2534#respond\">Comments?<\/a>\r\n\r\n<script language=\"JavaScript\">\/\/ <![CDATA[\r\n\r\n\r\n    function grabCode_0f44a1d0ff7f42b293d743b365b0d0b8() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='0f44a1d0ff7f42b293d743b365b0d0b8 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 0f44a1d0ff7f42b293d743b365b0d0b8';\r\n\r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n\r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Robert Bemis';\r\n        copyright = 'Copyright 2010 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('\r\n\r\n<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\r\n\r\n\r\n\\n');\r\n\r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n\r\n\/\/ ]]><\/script>\r\n<p style=\"text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;\"><a><span style=\"font-size: x-small; font-style: italic;\">Get\r\nthe MATLAB code\r\n<noscript>(requires JavaScript)<\/noscript><\/span><\/a><\/p>\r\nPublished with MATLAB\u00ae 7.9\r\n\r\n<\/div>\r\n<!--\r\n0f44a1d0ff7f42b293d743b365b0d0b8 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021 Bob>'s\r\n% pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/24861-41-complete-gui-examples 41 Complete GUI Examples>\r\n% by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/17055 Matt Fig>.\r\n%%\r\n% If you like example GUIs, don't miss this one. Or the other forty for that\r\n% matter. I'm not going to review them all. You can run through them all in a\r\n% few minutes if you just spend a few seconds playing with each. Just run\r\n% |previewGUIs| to get started and click \"continue\" on his bonus GUI.\r\n% (Does that count as a 42nd GUI?)\r\n%%\r\n% <<..\/images\/pick\/runthrough.png>>\r\n%%\r\n% You can also refer to his Usage_notes.pdf and\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/24861\/6\/content\/contents.html contents.html>\r\n% files. Use these to aid\r\n% navigation and find your favorite number. Then open it in MATLAB's Editor\r\n% to see how he made it work.\r\n%%\r\n% Thanks, Matt!\r\n%%\r\n% _Note: This submission was also featured on\r\n% <https:\/\/blogs.mathworks.com\/videos\/2009\/08\/06\/gui-tutorials-from-the-file-exchange\/ Doug\u00e2\u20ac\u2122s MATLAB Video Tutorials>\r\n% last year but Matt has added more GUI examples since then._\r\n%%\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2534#respond Comments?>\r\n\r\n##### SOURCE END ##### 0f44a1d0ff7f42b293d743b365b0d0b8\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n\r\nBob's pick this week is 41 Complete GUI Examples by Matt Fig.\r\n\r\n&nbsp;\r\n\r\nIf you like example GUIs, don't miss this one. Or the other forty for that matter. I'm not going to review them all. You... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2010\/02\/12\/41-complete-gui-examples\/\">read more >><\/a><\/p>","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2534"}],"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\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2534"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2534\/revisions"}],"predecessor-version":[{"id":5884,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2534\/revisions\/5884"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}