{"id":11768,"date":"2024-12-20T01:07:50","date_gmt":"2024-12-20T06:07:50","guid":{"rendered":"https:\/\/blogs.mathworks.com\/student-lounge\/?p=11768"},"modified":"2025-03-27T16:31:38","modified_gmt":"2025-03-27T20:31:38","slug":"exploring-fractals-and-conways-game-of-life-with-matlab-at-wpi","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/student-lounge\/2024\/12\/20\/exploring-fractals-and-conways-game-of-life-with-matlab-at-wpi\/","title":{"rendered":"Exploring Fractals and Conway&#8217;s Game of Life with MATLAB at WPI"},"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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">This summer, fifteen high school students from across Massachusetts had the unique opportunity to participate in <span style=\"font-style: italic;\">Explore the World with MATLAB<\/span>, a pre-collegiate Worcester Polytechnic Insitute (WPI) <a href=\"https:\/\/www.wpi.edu\/academics\/pre-collegiate\/summer-programs\/launch\">Launch(commuter)<\/a> summer program, led by Dr. Adriana Hera, Principal Application Scientist in the Academic and Research Computing Group. The week-long course was designed to introduce students to MATLAB, focusing specifically on the world of fractals.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The program kicked off with students getting their first taste of MATLAB. With the help of pre-written code, they learned the basics of fractals and experimented with the <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/patch.html?s_tid=srchtitle_site_search_1_patch\"><span style=\"font-family: monospace;\">patch<\/span><\/a> and <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/plot.html?searchHighlight=plot&amp;s_tid=srchtitle_support_results_1_plot\"><span style=\"font-family: monospace;\">plot<\/span><\/a> commands to create and customize colorful houses. The excitement was palpable as students saw their code come to life on the screen.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 463px; height: 225px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/24Dec20_1.png\" alt=\"\" width=\"463\" height=\"225\" \/><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">As the week progressed, the challenges became more complex. Students moved from plotting individual flowers to creating intricate fields of flowers, each one unique and vibrant.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 632px; height: 220px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/24Dec20_2.png\" alt=\"\" width=\"632\" height=\"220\" \/><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The midpoint of the week brought a dive into John Conway\u2019s Game of Life, a cellular automaton that simulates the life and death of cells on a grid. John Conway&#8217;s Game of Life is a computer simulation that models population changes on a grid of cells, which can be either &#8220;alive&#8221; or &#8220;dead.&#8221; Starting with an initial pattern, the simulation follows simple rules: living cells with 2 or 3 neighbors survive, those with fewer than 2 or more than 3 neighbors die, and dead cells with exactly 3 neighbors come to life. By repeatedly applying these rules, you can watch how the patterns evolve over time. This was a turning point for many students, sparking ideas for their own projects.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">One student used MATLAB to model the spread of a disease, comparing scenarios with and without a vaccine. Another explored the competition between two bacterial populations with different growth rates and initial sizes, investigating outcomes like dominance, coexistence, or extinction. The versatility of MATLAB allowed these students to apply their newfound skills to a variety of real-world scenarios.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 548px; height: 308px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/24Dec20_3.gif\" alt=\"languagedecay.gif\" width=\"548\" height=\"308\" \/><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\">Figure 3: Ruhi S.&#8217;s rendeition of the Game of Life for the Number of families who speak languages after passing generations.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">By the fourth day, students were delving deeper into fractals and the rotation of geometric figures, pushing the boundaries of their understanding and creativity. One student, initially inspired by the Game of Life, transitioned to creating a digital rendition of the legendary sword Excalibur, showcasing the flexibility and power of 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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 272px; height: 242px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/24Dec20_4.png\" alt=\"\" width=\"272\" height=\"242\" \/><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The final day was dedicated to 3D shapes, culminating in a series of presentations where students showcased their projects to peers and parents. The room buzzed with excitement as each student demonstrated their work. I had the privilege of attending these presentations and was impressed by the creativity and technical skill shown. I also shared some MathWorks swag and demonstrated MATLAB\u2019s built-in <span style=\"font-family: monospace;\">life<\/span> function (located in the MATLAB <span style=\"font-family: monospace;\">\/toolbox\/matlab\/demos\/ directory)<\/span> , a version of Conway\u2019s Game of Life developed by Ned Gulley and one of the co-founders of MathWorks, Cleve Moller.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Throughout the week, the students not only learned how to approach and solve problems using MATLAB but also explored mathematical concepts, the fundamentals of programming, and the intricate geometry of nature. Their projects spanned diverse applications, from simulating disease spread and bacterial competition to optimizing robot pathfinding and preserving linguistic heritage.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">One particularly notable project involved using the Game of Life to illustrate the decline of native languages within immigrant families, highlighting the importance of preserving linguistic heritage. Another student simulated interactions between three species, including scenarios with genetic mutations, to study coexistence and population dynamics.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The students expressed their gratitude for MATLAB documentation, which guided them in coding their projects . One student, Jade V. shared this slide as part of their final presentation.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 240px; height: 200px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/24Dec20_5.png\" alt=\"\" width=\"240\" height=\"200\" \/><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The program not only enhanced their technical skills but also inspired them to think creatively and apply MATLAB to real-world challenges.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">We\u2019re incredibly proud of the students and their accomplishments. Their projects showcased the power of MATLAB in exploring and solving complex problems, and we look forward to seeing how they continue to innovate in the future.<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Stay tuned for more stories from students and educators who are using MATLAB to make a difference in the world!<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">References: https:\/\/blogs.mathworks.com\/cleve\/2012\/09\/03\/game-of-life-part-1-the-rule\/<\/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; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<\/div>\n<p><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><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2024\/12\/Picture1.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>This summer, fifteen high school students from across Massachusetts had the unique opportunity to participate in Explore the World with MATLAB, a pre-collegiate Worcester Polytechnic Insitute (WPI)&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2024\/12\/20\/exploring-fractals-and-conways-game-of-life-with-matlab-at-wpi\/\">read more >><\/a><\/p>\n","protected":false},"author":183,"featured_media":11771,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[731],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/11768"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/users\/183"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/comments?post=11768"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/11768\/revisions"}],"predecessor-version":[{"id":12054,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/11768\/revisions\/12054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media\/11771"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media?parent=11768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/categories?post=11768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/tags?post=11768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}