{"id":2929,"date":"2011-09-16T13:57:02","date_gmt":"2011-09-16T13:57:02","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2011\/09\/16\/ball-and-beam\/"},"modified":"2016-11-11T05:36:09","modified_gmt":"2016-11-11T10:36:09","slug":"ball-and-beam","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2011\/09\/16\/ball-and-beam\/","title":{"rendered":"Ball and Beam"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\">Jiro<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/151-ball---beam-demo\">Ball and Beam Simulation<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/57812\">Jeffrey Kantor<\/a>.\r\n   <\/p>\r\n   <p><a href=\"http:\/\/en.wikipedia.org\/wiki\/Ball_and_beam\">Ball and beam<\/a> is an interesting controls problem. A good friend of mine from graduate school used to do research on this problem, both\r\n      from the theoretical and experimental sides. So I was immediately drawn to this example by Jeffrey.\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_ballbeam\/potw_ballbeam_animation.gif\"> <\/p>\r\n   <p>This didactic tool has a nice graphical user interface for simulating the ball and beam system, as well as performing an experiment.\r\n      The tool will record the simulation\/experiment and will save and display the results. I also like how Jeffrey created a problem set for this topic using <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2011b\/techdoc\/matlab_env\/f6-22451.html\">MATLAB publishing<\/a>.\r\n   <\/p>\r\n   <p><b>Comments<\/b><\/p>\r\n   <p>Let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2929#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/151-ball---beam-demo#comments\">comment<\/a> for Jeffrey.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_5379dd3b4a364ef4b41f3439be412692() {\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='5379dd3b4a364ef4b41f3439be412692 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 5379dd3b4a364ef4b41f3439be412692';\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 = 'Jiro Doke';\r\n        copyright = 'Copyright 2011 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 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>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \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_5379dd3b4a364ef4b41f3439be412692()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.13<br><\/p>\r\n<\/div>\r\n<!--\r\n5379dd3b4a364ef4b41f3439be412692 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\r\n% Jiro>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/151-ball---beam-demo Ball and Beam\r\n% Simulation> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/57812\r\n% Jeffrey Kantor>.\r\n%\r\n% <http:\/\/en.wikipedia.org\/wiki\/Ball_and_beam Ball and beam> is an\r\n% interesting controls problem. A good friend of mine from graduate school\r\n% used to do research on this problem, both from the theoretical and\r\n% experimental sides. So I was immediately drawn to this example by\r\n% Jeffrey.\r\n%\r\n% <<potw_ballbeam_animation.gif>>\r\n%\r\n% This didactic tool has a nice graphical user interface for simulating the\r\n% ball and beam system, as well as performing an experiment. The tool will\r\n% record the simulation\/experiment and will save and display the results. I\r\n% also like how Jeffrey created a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/151-ball---beam-demo-ballbeam-m\/content\/html\/README.html\r\n% problem set> for this topic using\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2011b\/techdoc\/matlab_env\/f6-22451.html MATLAB\r\n% publishing>.\r\n%\r\n% *Comments*\r\n%\r\n% Let us know what you think\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2929#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/151-ball---beam-demo#comments\r\n% comment> for Jeffrey.\r\n\r\n##### SOURCE END ##### 5379dd3b4a364ef4b41f3439be412692\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is Ball and Beam Simulation by Jeffrey Kantor.\r\n   \r\n   Ball and beam is an interesting controls problem. A good friend of mine from graduate school used to do research on... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2011\/09\/16\/ball-and-beam\/\">read more >><\/a><\/p>","protected":false},"author":35,"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\/2929"}],"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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2929"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2929\/revisions"}],"predecessor-version":[{"id":8036,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2929\/revisions\/8036"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}