{"id":17036,"date":"2025-10-15T16:37:51","date_gmt":"2025-10-15T20:37:51","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=17036"},"modified":"2025-10-15T16:37:51","modified_gmt":"2025-10-15T20:37:51","slug":"jokes-in-matlab-learn-about-contributing-to-a-matlab-toolbox","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2025\/10\/15\/jokes-in-matlab-learn-about-contributing-to-a-matlab-toolbox\/","title":{"rendered":"Jokes in MATLAB: Learn about contributing to a MATLAB toolbox"},"content":{"rendered":"<div class=\"rtcContent\">\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/profile\/authors\/20789457\">Mike<\/a>'s pick this week is <a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/fileexchange\/172039-jokes-in-matlab\">Jokes in MATLAB<\/a> by <a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/profile\/authors\/14148363\">Gareth Thomas<\/a><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The Jokes in MATLAB toolbox provides you with a <span style=\"font-family: monospace;\">joke()<\/span> function<\/div>\n<div class=\"preformatted-plain\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">joke()<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">Why did the software engineer stay cool under pressure? Because he had excellent exception handling.<\/span><\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">You can also ask for a joke in a range of languages<\/div>\n<div class=\"preformatted-plain\" style=\"margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px;\">\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">joke(language=\"portuguese\")<\/span><\/div>\n<div style=\"border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: #212121; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12px; border: 0px none #212121;\"><span style=\"white-space: pre;\">Porque \u00e9 que o ficheiro .zip foi de f\u00e9rias?Para descomprimir.<\/span><\/div>\n<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">There's also a simple app which you can find by clicking on Apps -&gt; My Apps -&gt; jokeApp inside MATLAB<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 616px; height: 296px;\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/jokesInMATLAB_1.png\" alt=\"\" width=\"616\" height=\"296\" \/><\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Learning about MATLAB development through jokes<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Although this is fun, the main reason why I like <a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/fileexchange\/172039-jokes-in-matlab\">Jokes in MATLAB<\/a> is that it was designed as an exercise in how to develop and deliver a MATLAB toolbox. As Gareth describes in this <a href=\"https:\/\/www.linkedin.com\/posts\/g-thomas_matlab-jokes-activity-7235201409443377152-_lmL?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAAAK4wosBF274RTSkYjiebgNbxNPIh3wzx4Y\" target=\"_blank\">LinkedIn post<\/a>, he was able to start from scratch to having a toolbox on File Exchange and available from the MATLAB Add-ons Panel in around 90 minutes. There were some lessons for us, MathWorks, as well as for you, the developer of a new toolbox. Some of these lessons included:-<\/div>\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px;\">\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">MathWorks publishes<a href=\"https:\/\/github.com\/mathworks\/toolboxdesign\" target=\"_blank\"> MATLAB Toolbox Best Practice<\/a> guidelines<\/li>\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/github.com\/matlab-actions\" target=\"_blank\">MATLAB GitHub actions<\/a> make life easy<\/li>\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">You can easily <a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/content\/fx\/about.html#Why_GitHub\">connect a GitHub repo to File Exchange<\/a> so that updates to a GitHub get automatically published to File Exchange.<\/li>\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=versionbaygt\/MATLABJokes\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 136px; height: 20px;\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/jokesInMATLAB_2.png\" alt=\"\" width=\"136\" height=\"20\" \/><\/a> badges allow users to interact with your toolbox via MATLAB Online -- even when they don't have a MATLAB license!<\/li>\n<\/ul>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Pull Requests are welcome<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">If you have ever wanted to contribute to an open source project but aren't sure where to start, this toolbox might be the answer. Gareth encourages both the creation of GitHub Issues and Pull Requests. You can do both of these on the <a href=\"https:\/\/github.com\/versionbaygt\/MATLABJokes\" target=\"_blank\">project's GitHub repository<\/a>.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<\/div>\n<script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/pick\/files\/Jokes-in-MATLAB.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>\nMike's pick this week is Jokes in MATLAB by Gareth Thomas\nThe Jokes in MATLAB toolbox provides you with a joke() function\n\njoke()\nWhy did the software engineer stay cool under pressure? Because he... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2025\/10\/15\/jokes-in-matlab-learn-about-contributing-to-a-matlab-toolbox\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":17042,"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\/17036"}],"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\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=17036"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/17036\/revisions"}],"predecessor-version":[{"id":17039,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/17036\/revisions\/17039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media\/17042"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=17036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=17036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=17036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}