{"id":1938,"date":"2012-02-04T02:19:56","date_gmt":"2012-02-04T07:19:56","guid":{"rendered":"http:\/\/labrigger.com\/blog\/?p=1938"},"modified":"2012-02-04T22:16:01","modified_gmt":"2012-02-05T03:16:01","slug":"competition","status":"publish","type":"post","link":"http:\/\/labrigger.com\/blog\/2012\/02\/04\/competition\/","title":{"rendered":"Competition"},"content":{"rendered":"<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster1.jpg\" alt=\"\" title=\"Monster truck\" width=\"600\" height=\"277\" class=\"aligncenter size-full wp-image-1939\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster1.jpg 600w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster1-300x138.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Like many of you, I went to monster truck show last weekend.<\/p>\n<p>The competition reminded me MATLAB&#8217;s new thing: <a href=\"http:\/\/www.mathworks.com\/matlabcentral\/cody\">Cody<\/a>.<\/p>\n<p>It&#8217;s a bunch of problems posed as MATLAB coding tasks. For example:<\/p>\n<blockquote><p>Find the mean of each consecutive pair of numbers in the input row vector. For example,<\/p>\n<p>x=[1 2 3] &#8212;-> y = [1.5 2.5]\n<p>x=[100 0 0 0 100] &#8212;-> y = [50 0 0 50]<\/blockquote>\n<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/cody.png\" alt=\"\" title=\"cody\" width=\"600\" height=\"221\" class=\"aligncenter size-full wp-image-1941\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/cody.png 600w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/cody-300x110.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>To solve the problem, you write a MATLAB program that performs that input-output transformation. Of the correct answers, the shortest program wins. Answers are automatically checked for correctness and there is a graphic display of length and correctness of submitted answers:<\/p>\n<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/stats.png\" alt=\"\" title=\"answers\" width=\"371\" height=\"206\" class=\"aligncenter size-full wp-image-1944\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/stats.png 371w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/stats-300x166.png 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/p>\n<p>At the very least, I think this is a clever tool for learning MATLAB. Working through exercises is pretty dry. This is effectively the same thing, but the competetion aspect is energizing. Most problems are locked until you solve easier ones. You can submit your own problems too. So this could be a sneaky way to crowd source your own work.<\/p>\n<p>Long live competion.<\/p>\n<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster2.jpg\" alt=\"\" title=\"monster2\" width=\"600\" height=\"257\" class=\"aligncenter size-full wp-image-1942\" srcset=\"http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster2.jpg 600w, http:\/\/labrigger.com\/blog\/wp-content\/uploads\/2012\/02\/monster2-300x128.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p align=\"center\">\n<p>Like many of you, I went to monster truck show last weekend.<\/p>\n<p>The competition reminded me MATLAB&#8217;s new thing: <a href=\"http:\/\/www.mathworks.com\/matlabcentral\/cody\">Cody<\/a>.<\/p>\n<p>It&#8217;s a bunch of problems posed as MATLAB coding tasks. For example:<\/p>\n<p>Find the mean&#8230;<\/p>\n<div class=\"read-more\"><a href=\"http:\/\/labrigger.com\/blog\/2012\/02\/04\/competition\/\">Read More<\/a><\/div><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3],"tags":[26],"class_list":["post-1938","post","type-post","status-publish","format-standard","hentry","category-software","category-tips","tag-matlab"],"_links":{"self":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/1938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/comments?post=1938"}],"version-history":[{"count":5,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/1938\/revisions"}],"predecessor-version":[{"id":1976,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/posts\/1938\/revisions\/1976"}],"wp:attachment":[{"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/media?parent=1938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/categories?post=1938"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/labrigger.com\/blog\/wp-json\/wp\/v2\/tags?post=1938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}