{"id":974,"date":"2014-08-25T13:24:38","date_gmt":"2014-08-25T18:24:38","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/?p=974"},"modified":"2014-09-03T10:26:12","modified_gmt":"2014-09-03T15:26:12","slug":"age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2014\/08\/25\/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink\/","title":{"rendered":"Age is No Barrier to Exploring Ideas and Concepts in MATLAB and Simulink"},"content":{"rendered":"<div class=\"content\"><h3>Age is No Barrier to Exploring Ideas and Concepts in MATLAB and Simulink<\/h3><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/calum_blue.jpg\" alt=\"\"> <\/p><!--introduction--><p>I&#8217;d like to introduce you to this week&#8217;s guest blogger, Graham Dudgeon. Graham is with our Industry Marketing Team at MathWorks, and focuses on the Utilities &amp; Energy Industry. In this blog, Graham shares a story about age being no barrier to exploring ideas and concepts in MATLAB and Simulink.<\/p><!--\/introduction--><p>Hi Everyone, and thank you Loren for inviting me to be a guest blogger. This story begins with my dog, waiting patiently at the patio door expecting either of my two sons to let her in. She was out of luck. I am no dog psychologist, but I figure that because she could see the boys very clearly, that they in turn could see her. In her mind, she didn&#8217;t need to bark to raise their attention&#8230;. and so on she waited while my sons continued watching Phineas and Ferb. Once I was alerted to her predicament a mere fraction of a second after entering the family room (by seeing her hopeful eyes and her tail wagging with a vigor in direct proportion to how long she had been waiting), I let her in and then reinforced to my sons that they need to be more aware of their surroundings. This is where MATLAB and Simulink come into the story&#8230; To help pooch out, I made a slight modification to <a href=\"https:\/\/www.mathworks.com\/help\/imaq\/examples\/live-image-acquisition-and-histogram-display.html\">demoimaqsl_rgbhistogram_win.slx<\/a> , aimed the web cam at the patio door and when pooch came to the door, we were alerted to here presence by a &#8216;gong&#8217; that I took from &#8216;gong.mat&#8217;, and had a MATLAB callback to execute the sound when a color threshold was reached &#8211; it turns out red works best for a fox hound. Was pooch consequently let into the house by my boys? Unfortunately not. The boys decided that a much better use of my endeavor was to see if they could creep past the field of view without the gong going off. This kept them entertained for longer than I expected.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/pooch.jpg\" alt=\"\"> <\/p><p>My eldest son, who is 9 years old, started asking questions about how the model worked, how the camera worked, what was doing what, how do you detect pooch, etc. etc. I must have answered with sufficient clarity and enthusiasm as he decided to take what I had done and modify it for his Science Expo.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/Calums_model.jpg\" alt=\"\"> <\/p><p>My son watched the RGB plot as we passed different colors in front, and gained a feel for how to develop a detection algorithm. Our process was to let my son watch only the RGB plot, not the object in front of the camera, and tell me what color he thought was there. &#8216;Red!&#8217;, &#8217;Blue!&#8217;, &#8217;Kinda red and blue, and a bit of green!&#8217;. We would then confirm his observations by looking at the actual object and moving it again across the field of view to see the RGB response change with the movement. My son associated y-axis magnitude with detection and figured out that to detect, he need simply tell the computer to &#8216;gong&#8217; when a color got to a certain magnitude. My son also figured that you could remain &#8216;invisible&#8217; if the detector was tuned only for red and you wore another color, and that a black background would cause less noise on the color signals, as black caused only a small RGB signal. My youngest son also helped out, by wearing different colored shirts and walking (sometimes running) past the web cam. The list of insights my son gained go on and on. He presented his work at the Science Expo, and was met with great enthusiasm and interest by the High School Scientists who assessed his work.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/calum_and_liam.jpg\" alt=\"\"> <\/p><p>So how does this story end? A few days ago my eldest son told me that when he grows up he wants to be an engineer&#8230; and that he wants to work for MathWorks. On hearing this, my 5 year old son said he wanted to be a scientist (as he &#8216;wants to see into stuff&#8217;)&#8230; and that he too wants to work for MathWorks. So the story continues, and our future is in good hands<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/calum_conclusion.jpg\" alt=\"\"> <\/p><p>And what of pooch? She&#8217;s standing outside the patio door (with hopeful eyes and tail wagging vigorously) waiting for me to finish this post.<\/p><p>Before I sign off, let me give you my main takeaway from this story&#8230; You can use MathWorks tools to help kids of any age explore and evolve their curiosity, by connecting them directly to the world of Science and Engineering. Give it a try!<\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_087f44b7cd6945d0a77f5f830351272f() {\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='087f44b7cd6945d0a77f5f830351272f ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 087f44b7cd6945d0a77f5f830351272f';\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        copyright = 'Copyright 2014 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n\r\n        d.title = title + ' (MATLAB code)';\r\n        d.close();\r\n    }   \r\n     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_087f44b7cd6945d0a77f5f830351272f()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2014a<br><\/p><\/div><!--\r\n087f44b7cd6945d0a77f5f830351272f ##### SOURCE BEGIN #####\r\n%% Age is No Barrier to Exploring Ideas and Concepts in MATLAB and Simulink\r\n%\r\n% <<calum_blue.jpg>>\r\n% \r\n%\r\n% I\u00e2\u20ac\u2122d like to introduce you to this week\u00e2\u20ac\u2122s guest blogger, Graham Dudgeon. Graham is with our Industry Marketing Team at MathWorks, and focuses on the Utilities & Energy Industry. In this blog, Graham shares a story about age being no barrier to exploring ideas and concepts in MATLAB and Simulink.\r\n% \r\n% Hi Everyone, and thank you Loren for inviting me to be a guest blogger.\r\n% This story begins with my dog, waiting patiently at the patio door expecting either of my two sons to let her in. She was out of luck. I am no dog psychologist, but I figure that because she could see the boys very clearly, that they in turn could see her. In her mind, she didn\u00e2\u20ac\u2122t need to bark to raise their attention\u00e2\u20ac\u00a6. and so on she waited while my sons continued watching Phineas and Ferb. Once I was alerted to her predicament a mere fraction of a second after entering the family room (by seeing her hopeful eyes and her tail wagging with a vigor in direct proportion to how long she had been waiting), I let her in and then reinforced to my sons that they need to be more aware of their surroundings. This is where MATLAB and Simulink come into the story\u00e2\u20ac\u00a6\r\n% To help pooch out, I made a slight modification to <https:\/\/www.mathworks.com\/help\/imaq\/examples\/live-image-acquisition-and-histogram-display.html demoimaqsl_rgbhistogram_win.slx> , aimed the web cam at the patio door and when pooch came to the door, we were alerted to here presence by a \u00e2\u20ac\u02dcgong\u00e2\u20ac\u2122 that I took from \u00e2\u20ac\u02dcgong.mat\u00e2\u20ac\u2122, and had a MATLAB callback to execute the sound when a color threshold was reached \u00e2\u20ac\u201c it turns out red works best for a fox hound. Was pooch consequently let into the house by my boys? Unfortunately not. The boys decided that a much better use of my endeavor was to see if they could creep past the field of view without the gong going off. This kept them entertained for longer than I expected.\r\n%\r\n%\r\n% \r\n% <<pooch.jpg>>\r\n% \r\n%\r\n% My eldest son, who is 9 years old, started asking questions about how the model worked, how the camera worked, what was doing what, how do you detect pooch, etc. etc. I must have answered with sufficient clarity and enthusiasm as he decided to take what I had done and modify it for his Science Expo.\r\n%\r\n%\r\n% \r\n% <<Calums_model.jpg>>\r\n% \r\n%\r\n% My son watched the RGB plot as we passed different colors in front, and gained a feel for how to develop a detection algorithm. Our process was to let my son watch only the RGB plot, not the object in front of the camera, and tell me what color he thought was there. \u00e2\u20ac\u02dcRed!\u00e2\u20ac\u2122, \u00e2\u20ac\u2122Blue!\u00e2\u20ac\u2122, \u00e2\u20ac\u2122Kinda red and blue, and a bit of green!\u00e2\u20ac\u2122. We would then confirm his observations by looking at the actual object and moving it again across the field of view to see the RGB response change with the movement. \r\n% My son associated y-axis magnitude with detection and figured out that to detect, he need simply tell the computer to \u00e2\u20ac\u02dcgong\u00e2\u20ac\u2122 when a color got to a certain magnitude. My son also figured that you could remain \u00e2\u20ac\u02dcinvisible\u00e2\u20ac\u2122 if the detector was tuned only for red and you wore another color, and that a black background would cause less noise on the color signals, as black caused only a small RGB signal.\r\n% My youngest son also helped out, by wearing different colored shirts and walking (sometimes running) past the web cam. The list of insights my son gained go on and on. He presented his work at the Science Expo, and was met with great enthusiasm and interest by the High School Scientists who assessed his work.\r\n% \r\n% \r\n% \r\n% <<calum_and_liam.jpg>>\r\n% \r\n%\r\n% So how does this story end? A few days ago my eldest son told me that when he grows up he wants to be an engineer\u00e2\u20ac\u00a6 and that he wants to work for MathWorks. On hearing this, my 5 year old son said he wanted to be a scientist (as he \u00e2\u20ac\u02dcwants to see into stuff\u00e2\u20ac\u2122)\u00e2\u20ac\u00a6 and that he too wants to work for MathWorks. So the story continues, and our future is in good hands\r\n% \r\n% <<calum_conclusion.jpg>>\r\n%\r\n% And what of pooch? She\u00e2\u20ac\u2122s standing outside the patio door (with hopeful eyes and tail wagging vigorously) waiting for me to finish this post.\r\n%\r\n% Before I sign off, let me give you my main takeaway from this story\u00e2\u20ac\u00a6 You can use MathWorks tools to help kids of any age explore and evolve their curiosity, by connecting them directly to the world of Science and Engineering. Give it a try!\r\n\r\n\r\n##### SOURCE END ##### 087f44b7cd6945d0a77f5f830351272f\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/loren\/2014\/calum_blue.jpg\" onError=\"this.style.display ='none';\" \/><\/div><!--introduction--><p>I&#8217;d like to introduce you to this week&#8217;s guest blogger, Graham Dudgeon. Graham is with our Industry Marketing Team at MathWorks, and focuses on the Utilities &amp; Energy Industry. In this blog, Graham shares a story about age being no barrier to exploring ideas and concepts in MATLAB and Simulink.... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2014\/08\/25\/age-is-no-barrier-to-exploring-ideas-and-concepts-in-matlab-and-simulink\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[25,33],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/974"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=974"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/974\/revisions"}],"predecessor-version":[{"id":978,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/974\/revisions\/978"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}