{"id":10252,"date":"2018-10-26T12:44:14","date_gmt":"2018-10-26T16:44:14","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=10252"},"modified":"2018-10-26T12:44:14","modified_gmt":"2018-10-26T16:44:14","slug":"dynamics-of-rigid-bodies-live-editor-challenge-winner-faculty-category","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2018\/10\/26\/dynamics-of-rigid-bodies-live-editor-challenge-winner-faculty-category\/","title":{"rendered":"Dynamics of Rigid Bodies \u2013 Live Editor Challenge Winner (Faculty Category)"},"content":{"rendered":"\r\n\r\n<div class=\"content\"><p><a href=\"http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/869871\">Jiro<\/a>&#8216;s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/68242\">The dynamics of rigid bodies system<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/8325442\">Anna Sibilska-Mroziewicz<\/a>.<\/p><p>Continuing from my last Pick, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2018\/10\/05\/handle-classes-live-editor-challenge-winner-student-category\/\">Handle Classes &#8211; Live Editor Challenge Winner (Student Category)<\/a>, I&#8217;d like to highlight the winner of the Faculty Category of the <a href=\"https:\/\/www.mathworks.com\/academia\/student-challenge\/matlab-online-live-editor-challenge.html\">MATLAB Online Live Editor Challenge 2018<\/a>.<\/p><p>This entry by Anna is a great example of using the Live Editor to create MATLAB assignments for the students. The Live Script is the actual assignment problem, with problem descriptions and graphics.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dynamics_live\/live_script_problem_statement.png\" alt=\"\"> <\/p><p>Anna has places in the script where students are supposed to enter the correct statements.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dynamics_live\/live_script_fill_in_the_blank.png\" alt=\"\"> <\/p><p>Then at the end of the problem, she calls a script that checks the correctness of the variables. She uses <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/assert.html\"><tt>assert<\/tt><\/a> and <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/isequal.html\"><tt>isequal<\/tt><\/a> to accomplish this.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dynamics_live\/live_script_answer_checker.png\" alt=\"\"> <\/p><p><b>MATLAB Grader<\/b><\/p><p>For anyone interested in doing similar tasks of creating assignment problems with code assessments and feedback, you should definitely check out <a href=\"https:\/\/www.mathworks.com\/products\/matlab-grader.html\">MATLAB Grader<\/a>, an autograding environment for MATLAB assignments. Anyone with a valid MATLAB license in maintenance can create problems and invite students to your course.<\/p><p>I took one of the assignment problems that Anna had created and made it into a MATLAB Grader problem. Here&#8217;s a short video of it in action. MATLAB Grader comes with a simple mechanism to check the equality of a variable and immediate feedback with a score, either pass\/fail or a weighted score.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dynamics_live\/grader_example.gif\" alt=\"\"> <\/p><p><b>Comments<\/b><\/p><p>Check out Anna&#8217;s live scripts and let us know what you think <a href=\"http:\/\/blogs.mathworks.com\/pick\/?p=10252#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/68242#comment\">comment<\/a> for Anna. Also, definitely check out <a href=\"https:\/\/www.mathworks.com\/products\/matlab-grader.html\">MATLAB Grader<\/a> as well!<\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_234326bdb3cb4b3386292c5000198fb4() {\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='234326bdb3cb4b3386292c5000198fb4 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 234326bdb3cb4b3386292c5000198fb4';\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 2018 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_234326bdb3cb4b3386292c5000198fb4()\"><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; R2018b<br><\/p><p class=\"footer\"><br>\r\n      Published with MATLAB&reg; R2018b<br><\/p><\/div><!--\r\n234326bdb3cb4b3386292c5000198fb4 ##### SOURCE BEGIN #####\r\n%%\r\n% <http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/869871 Jiro>'s\r\n% pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/68242 The dynamics\r\n% of rigid bodies system> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/8325442 Anna\r\n% Sibilska-Mroziewicz>.\r\n%\r\n% Continuing from my last Pick,\r\n% <https:\/\/blogs.mathworks.com\/pick\/2018\/10\/05\/handle-classes-live-editor-challenge-winner-student-category\/\r\n% Handle Classes - Live Editor Challenge Winner (Student Category)>, I'd\r\n% like to highlight the winner of the Faculty Category of the\r\n% <https:\/\/www.mathworks.com\/academia\/student-challenge\/matlab-online-live-editor-challenge.html MATLAB\r\n% Online Live Editor Challenge 2018>.\r\n%\r\n% This entry by Anna is a great example of using the Live Editor to create\r\n% MATLAB assignments for the students. The Live Script is the actual\r\n% assignment problem, with problem descriptions and graphics.\r\n%\r\n% <<live_script_problem_statement.png>>\r\n%\r\n% Anna has places in the script where students are supposed to enter the\r\n% correct statements.\r\n%\r\n% <<live_script_fill_in_the_blank.png>>\r\n%\r\n% Then at the end of the problem, she calls a script that checks the\r\n% correctness of the variables. She uses\r\n% <https:\/\/www.mathworks.com\/help\/matlab\/ref\/assert.html |assert|> and\r\n% <https:\/\/www.mathworks.com\/help\/matlab\/ref\/isequal.html |isequal|> to\r\n% accomplish this.\r\n%\r\n% <<live_script_answer_checker.png>>\r\n%\r\n% *MATLAB Grader*\r\n%\r\n% For anyone interested in doing similar tasks of creating assignment\r\n% problems with code assessments and feedback, you should definitely check\r\n% out <https:\/\/www.mathworks.com\/products\/matlab-grader.html MATLAB\r\n% Grader>, an autograding environment for MATLAB assignments. Anyone with a\r\n% valid MATLAB license in maintenance can create problems and invite\r\n% students to your course.\r\n%\r\n% I took one of the assignment problems that Anna had created and made it\r\n% into a MATLAB Grader problem. Here's a short video of it in action.\r\n% MATLAB Grader comes with a simple mechanism to check the equality of a\r\n% variable and immediate feedback with a score, either pass\/fail or a\r\n% weighted score.\r\n%\r\n% <<grader_example.gif>>\r\n%\r\n% *Comments*\r\n%\r\n% Check out Anna's live scripts and let us know what you think\r\n% <http:\/\/blogs.mathworks.com\/pick\/?p=10252#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/68242#comment\r\n% comment> for Anna. Also, definitely check out\r\n% <https:\/\/www.mathworks.com\/products\/matlab-grader.html MATLAB Grader> as\r\n% well!\r\n\r\n##### SOURCE END ##### 234326bdb3cb4b3386292c5000198fb4\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_dynamics_live\/live_script_problem_statement.png\" onError=\"this.style.display ='none';\" \/><\/div><p>\r\n\r\nJiro&#8216;s pick this week is The dynamics of rigid bodies system by Anna Sibilska-Mroziewicz.Continuing from my last Pick, Handle Classes &#8211; Live Editor Challenge Winner (Student&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2018\/10\/26\/dynamics-of-rigid-bodies-live-editor-challenge-winner-faculty-category\/\">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\/10252"}],"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=10252"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10252\/revisions"}],"predecessor-version":[{"id":10258,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10252\/revisions\/10258"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=10252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=10252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=10252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}