{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2026-04-06T14:01:22.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2026-04-06T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":44688,"title":"World Cup 2018 Prediction!","description":"Which team will be the winner?\r\n","description_html":"\u003cp\u003eWhich team will be the winner?\u003c/p\u003e","function_template":"function y = Worldcup2018winner()\r\n  y = \"????\"\r\nend","test_suite":"%%\r\nteams={'Russia','Saudi Arabia', 'Egypt', 'Uruguay', 'Portugal', 'Spain','Morocco','Iran',...\r\n    'France','Australia', 'Peru','Denmark', 'Brazil', 'Switzerland', 'Costa Rica', 'Serbia', ...\r\n    'Germany', 'Mexico', 'Sweden', 'STH Korea', 'Belgium', 'Panama', 'Tunisia', 'England' , ...\r\n    'Argentina','Iceland', 'Croatia', 'Nigeria', 'Poland', 'Senegal', 'Colombia', 'Japan'};\r\nd=false;\r\nfor i=1:numel(teams)\r\n    if strcmp(Worldcup2018winner(),teams{i})\r\n        d=true;\r\n        break;\r\n    end\r\nend\r\nassert(d)","published":true,"deleted":false,"likes_count":1,"comments_count":3,"created_by":218677,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":130,"test_suite_updated_at":"2018-06-15T17:39:57.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-06-15T17:38:14.000Z","updated_at":"2026-04-05T20:47:52.000Z","published_at":"2018-06-15T17:38:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhich team will be the winner?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44493,"title":"The great 82-year-old","description":"Let's answer the question below;\r\n\r\n'I am *x* years old and I have never written programs.\r\nIf I study from now, will I be able to develop programs?'\r\n\r\ninput *x* (years old) \u003e\u003e\u003e output 'Yes' or 'No'","description_html":"\u003cp\u003eLet's answer the question below;\u003c/p\u003e\u003cp\u003e'I am \u003cb\u003ex\u003c/b\u003e years old and I have never written programs.\r\nIf I study from now, will I be able to develop programs?'\u003c/p\u003e\u003cp\u003einput \u003cb\u003ex\u003c/b\u003e (years old) \u0026gt;\u0026gt;\u0026gt; output 'Yes' or 'No'\u003c/p\u003e","function_template":"function Answer = Age(x)\r\n  Answer = 'Yes';\r\nend","test_suite":"%%\r\nx = 20;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))\r\n%%\r\nx = 40;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))\r\n%% Great Ms Masako Wakamiya\r\nx = 82-1;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":137687,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":152,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-01-08T12:47:36.000Z","updated_at":"2026-02-15T11:10:56.000Z","published_at":"2018-01-08T12:58:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eLet's answer the question below;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'I am\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e years old and I have never written programs. If I study from now, will I be able to develop programs?'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003einput\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (years old) \u0026gt;\u0026gt;\u0026gt; output 'Yes' or 'No'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":60956,"title":"P(girl likes you | she smiled at you)","description":"Compute the probability\r\n\r\n\r\n\r\nGiven the input probabilities\r\n\r\n\r\n\r\n\r\n\r\n\r\n","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 401.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 408px 200.933px; transform-origin: 408px 200.933px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 80.4833px 8px; transform-origin: 80.4833px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eCompute the probability\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjcAAAAoCAYAAAACN9vJAAAV80lEQVR4Xu2dW8i1W1XHt/dKmldKWJQXSlmJlqIYKKUQhVRYaSIfGJZCSKhRIbIRUdEkwgs1IkTsCBViBKkYJEmZkYckL1J2EnqlFnaf88e3/u3/HszTc1rvWu87Hpi837fW88xnjv8cc5znXI96IK9EIBFIBBKBRCARSARuEQKPukW0JCmJQCKQCCQCiUAikAg8kMZNMkEikAhcGwK/VQb8w6X9wrUNPMebCCQC50EgjZvz4JxvSQQSgf0QeEfp6sdKe/Z+XWZPiUAicJsQSOPmOmcTz/V9pX3jOoefo04ENiGQxs0m+PLhRODqEPjVMuI/X6Lz0ri5ujl+4M/KkP+utPde39BzxInALgikcbMLjNlJInA1CPxIGem7S/u10v55ZtRp3MygdDn3YNh8prS3Xc6QuiN5Yfn2e0t7+umuX9lp3N9X+qH9eGk/VNobZxk+vP87y/9/orRvlvaRncaW3RyPwCUbNwjhL5WWUdX1fLDX+l47At7/zNKQt3ldDgKsrQ+V9uIZeT8yblBOryuNv73rn04vzVTJwyjtjd25BDrveUNphADXFmwiHDBkXl7aE06Q/P7ps61LhfDk80v7eevo8eXfUZm06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rGD5DIozlEkAvsgEHfqEVi4dMMGyrVdfBqFI40b34nBgBC+VKpzsXNEu3lUS0NdCBXXpF24yP99z+mv78aYJu4O3UitEsVV7Pig2l2nE8O4D5U28xtIdwiuW0Oqdnmxa6G33f/WEJyEJAKJwCYEdCYVGZLRrqRNL7rph480bm6atnx/IpAIJAKJQCKQCNxBBNK4uYOTniQnAolAIpAIJAK3GYE0bm7z7CZtiUAikAgkAonAHUQgjZs7OOlJciKQCCQCiUAicJsRSOPmNs9u0pYIJAKJQCKQCNxBBNK4uYOTniQnAolAIpAIJAK3GYE0bm7z7CZtiUAikAgkAonAHUTg24H/XZLu2Is/AAAAAElFTkSuQmCC\" width=\"283.5\" height=\"20\" style=\"width: 283.5px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 94.4667px 8px; transform-origin: 94.4667px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eGiven the input probabilities\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003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8OoDsWpNp7Tl5iGNeZfi8Zdc32XEpdUhbNsNmldCTbmQiciICIZFepnfiNc76+NnE5Z1/y2/tCAALOOTW9SMceWoxDRBJ8N1duS+KCkonepIeUPHQpNtjbP78HUM/VBl8vPFcb8ruJwDkR0JLzPaURHgU5Z5vW/nYSl7URzfpAQFGwXpRyD0jBA1g5GJ5dtiVxITxWy3lQiNmXhPR/rWx0lBaJkddVYc0ITW13wMx7+UwicB0QYO6zzX/LXUvnximJy7lH4Pp9XzsE448l7q2nWtZsHWHw/9q7JXEhwSauK/JxkRTtZPCEu9b5FKxVsk59nZXWjCChvD9dSsw9mXk3n0kELgUBlO2rS/lkKeQOyWGJWzAvpT+z7UziMotUPtdCgHwSLmwmqx7kdd04zKO9osZ8j7sxu23dkriQRNc6Nt53KvV2fdB4JfZsceDTXgey1y5tL7vEtmebE4EZBHxXhxLArztpARclB8dzmWYwy2cSgbhTkATbvZMWRm2xTduKuADg3aX47xLxC6MkmPqZFTT4nlJuP8icdjbwTzLf2VVBhn9tm2uKaSKQCFxPBHBm2HqJ4t1i9871RC17dasj4Lt7Wru+rgVGWxGXawFOdiIRSAQSgUQgEUgE9oVAEpd9jUe2JhFIBBKBRCARSAQ6CCRxSfFIBBKBRCARSAQSgYtBIInLxQxVNjQRSAQSgUQgEUgEkrikDCQCiUAikAgkAonAxSCQxOVihiobmggkAolAIpAIJAJJXFIGEoFEIBFIBBKBROBiEPgeJi8QknQM7YAAAAAASUVORK5CYII=\" width=\"279\" height=\"20\" style=\"width: 279px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR0AAAAoCAYAAADDqi7RAAAMZElEQVR4Xu2dW8h22xTHv31PTldcUOyLLcfaTiWKHEok5LA36SvlsEsSW0iSC+SQpJxCX3IuJKVQiOycyjkuUCSukLhn/PrWv/4Nc8411/Os9Tzre9+5avS+37vmmnPMMcf4jzHHHGt9N10Z15DAkMCQwAklcNMJxxpDDQkMCQwJXBmgM5RgSGBI4KQSGKBzUnGPwYYEhgQG6OxHB+4drLwi6J37YWlwMiTQlMCD4u6jgr6wRE4DdJZIa7u2AM7Xg14d9JPthhk9DwmsLoF3R48PCHphb88DdHoltV07AOcHQS/dCHDoH4+0VzCDN+gpQY8IesuBvDLPpwb9M+ib2y3X6LkgAUU6XcAzBzpPiwFeF8TP1vWjuPnVoI8G/eOCL8srY36vCbqlMc//xL27gr4S9JEZefww7n8v6A0ryQ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OR/D/atBSo5iTEQ3gFteS/jks6+sA++9sQYYXgazabhNfsjw505LAae3Bd0SxJy44HPu9NHlxRb3vUHaQsvJoQ9KvrcOGKSzOsovCmSuOHANKbqS7PmN5zXmurQPFIWj2lq0s7S/0f7iSUAg2drS7GHW3bp8CtCRVxufHiirhmqV1i6j34MiDh6Ok4DyK60tzXEjrPO0ovZSzuj/RjgF6CgBWwsPYZhE4Y1WKLjOcl3vhbD0WtCaFb9r8jf6Or0E9PpJLRdzeo7qIy7S361Bx+t9akfl7OfZe+75fys4xQLnE5xTjDnG2I8EiHRvDcIeOHXj/0L7VFDOSe2H4+ucLNbbrUGnVAPgQlPWvafScW/C3oIfFO8yR3xbyPRG6dOr3ZVg3zvgkPAnsFhUu7Ul6Hg2nYVHkJ+eNIAiJ04DlBVf8g7SjaJEg88hgSUSUL1MzynRkn5313ZL0NndZAdDQwJDAueXwACd86/B4GBI4FJJYIDOpVruMdkhgfNLYIDO+ddgcDAkcKkkMEDnUi33mOyQwPklMEDn/GswOBgSuFQSGKBzqZZ7THZI4PwS+B/IiJ1Wu1JXsQAAAABJRU5ErkJggg==\" width=\"142.5\" height=\"20\" style=\"width: 142.5px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcAAAAAoCAYAAABpRSooAAASbElEQVR4Xu2dW8h26RjHZ87J7mgcIByY7LObiAPZlEjIZob01ciuJE00JH05GLJJmjKI+hJjF9JI2YSIGGQfB+gjcWQX59y/Wv/6d3Xv1rPWep9nve/91N37ft+z1r2u+39d97W/13vtNeMzEBgIDAQGAgOBC4jAtRdwzWPJA4GBwEBgIDAQuGYYwCEEA4GBwEBgIHAhERgG8EKyfSx6IDAQGAgMBIYBPL4MPCGR8OA0Pnt8UgYFA4GBwEBglwg8JFH9+Ll6dBjA4/Ia43d7Gs9J4x/HJWU8fSAwEBgI7BqB9yTqH5jGS3tXMQxgL1LrX4fx+0QaT9nI+N03zYtX9OP1SR8zXhAEnpXWSXbisdN6X3NB1j2WedoIKGv2uETm09K4wchVJq3LCLYMIBvgljT4Wfv8KH355TQ+spEyPwV2sLbnpXFdhZi/pe++l8bH0/h65TqM05/SeFHjujnrxtihoB6dxiMnOuGLC8ec+Y517WvTg9+bxlfT6BLiYxF6Dp6Lx/zmND4XsJYsvcLk/aOTfO1p2T9MxD4pjdel8eE9ET5oLSKAzGL04Cuf36Vxfbgavl/p4XnLAGpelP+rp3/8N/2U4k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2f4HmdQNxytz7xvlI622O21x3UNmgcCJQRQzHSN0/RGN7feAkMn8NU0et6fOtDdCIGtDOBG5I5pBwIDgYHAQGAgsA4CwwCug+OYZSAwEBgIDAR2hsAwgDtj2CB3IDAQGAgMBNZBYBjAdXAcswwEBgIDgYHAzhAYBnBnDBvkDgQGAgOBgcA6CAwDuA6OY5aBwEBgIDAQ2BkCwwDujGGD3IHAQGAgMBBYB4H/AyQYDIOKAuzsAAAAAElFTkSuQmCC\" width=\"224\" height=\"20\" style=\"width: 224px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function P_LS = verify_bayes_theorem(P_SL, P_L, P_S)\r\n  P_LS = P_SL;\r\nend","test_suite":"%%\r\nP_SL = 0.99;\r\nP_L  = 1/3;\r\nP_S  = 0.5;\r\nP_LS_correct = 0.66;\r\nP_LS = verify_bayes_theorem(P_SL,P_L,P_S);\r\nassert(abs(P_LS_correct-P_LS) \u003c eps)\r\n\r\n%%\r\nP_SL = 0.75;\r\nP_L  = 1/5;\r\nP_S  = 0.25;\r\nP_LS_correct = 0.6;\r\nP_LS = verify_bayes_theorem(P_SL,P_L,P_S);\r\nassert(abs(P_LS_correct-P_LS) \u003c eps)\r\n\r\n%% Test forbidden functions\r\nfiletext = fileread('verify_bayes_theorem.m');\r\nillegal = contains(filetext, 'regexp') || contains(filetext, 'str2num') || contains(filetext, 'assignin') || contains(filetext, 'echo')\r\nassert(~illegal);","published":true,"deleted":false,"likes_count":2,"comments_count":2,"created_by":149128,"edited_by":149128,"edited_at":"2025-07-10T07:02:07.000Z","deleted_by":null,"deleted_at":null,"solvers_count":43,"test_suite_updated_at":"2025-07-10T07:02:07.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2025-07-08T12:54:24.000Z","updated_at":"2026-03-27T11:28:52.000Z","published_at":"2025-07-08T13:17:57.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompute the probability\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_{LS} = P(girl ~likes ~ you ~ | ~ she ~ smiled ~ at ~ you) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eGiven the input probabilities\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_{SL} = P(she ~ smiles ~ at ~ you ~ | ~ she ~ likes ~ you)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_L = P(she ~likes ~ you) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_S = P(she ~ just ~ smiles ~ in ~ general) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43747,"title":"Find the distance traveled by a car given velocity and time.","description":"A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.","description_html":"\u003cp\u003eA car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.\u003c/p\u003e","function_template":"function y = distance(velocity,time)\r\n  D = time;\r\nend","test_suite":"%%\r\nvelocity = 10;\r\ntime = 60; \r\nD_correct = 600;\r\nassert(isequal(distance(velocity,time),D_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":100857,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":130,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-12-07T20:05:40.000Z","updated_at":"2026-02-10T21:28:41.000Z","published_at":"2016-12-07T20:05:40.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44413,"title":"determine amount cookies left","description":"started with 3 cookies and you never ate any how many are left","description_html":"\u003cp\u003estarted with 3 cookies and you never ate any how many are left\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":157993,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":132,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-11-24T06:51:36.000Z","updated_at":"2026-02-18T21:56:43.000Z","published_at":"2017-11-24T06:51:36.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003estarted with 3 cookies and you never ate any how many are left\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43557,"title":"Find hen's weight. ","description":"If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.","description_html":"\u003cp\u003eIf hen weights x kilos on two legs, how much does it weights on one leg? Output the result.\u003c/p\u003e","function_template":"function y = Hen(x)\r\n  y = x-x+2*x+x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1;\r\nassert(isequal(Hen(x),y_correct))\r\n%%\r\nx = 2;\r\ny_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1+1;\r\nassert(isequal(Hen(x),y_correct))","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":138,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-15T10:07:55.000Z","updated_at":"2026-03-09T20:47:23.000Z","published_at":"2016-10-15T10:07:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf hen weights x kilos on two legs, how much does it weights on one leg? Output the result.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":48015,"title":"Calculate the volume of the football","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 63.9631px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 31.9744px; transform-origin: 406.996px 31.9815px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 20.9091px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 10.4545px; text-align: left; transform-origin: 383.999px 10.4545px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eCalculate the volume of a football given the ball radius r, using the formula below:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 34.0625px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 17.0312px; text-align: left; transform-origin: 383.999px 17.0312px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAABECAYAAAAhtL9RAAALwklEQVR4Xu2dBawtSRGGvwWCExyCQ7KLW3B3lg0Q3N0luLs7u7i7u0OCE4JLcELw4O7ukm+p2vQdzrkz55yZc2bmdScvb9+90z091f9U//VX9exB1FYtMGELHDThudepVwtQAVxBMGkLVABPevnq5CuAKwYmbYEK4EkvX518BXDFwKQtUAE86eXrNPlTAs8DfgrcA/hLp14TuagCeCILteY0jwHcH3hUgLgCeE1D1m67scDVgVcAJ6gA3s0C1Luub4GzAY8DjgUcVgG8viFrz+1b4HjAE4CPAocAj6wA3v4i1DuuZwHjmhsD5wUeBNx3YgB2/pcC7g5cHvg18ErgyfHfe6xSg7j1QDLmXhcA7gfcJZSHh0wMwFcEbgocEYC9bagnTwUeAfyrNH4F8JihuPrclMyeBjwH+FB0nxKATxwv3tOB38b8/dmLgOPGzvKrCuDVgTGFHkpm94qJPgn45wQBfBLA5/h5YfDjAE+JYPTOwJ8qgKcAx9XneChwK+COwG+K7lPywIue+rTAC0NRyV3lqOsqhVgdKGPsodLwTOA+wJcaE5wygNWvVVN8phc0+a/PuQzARn+3B65bGMNo8A3A+4G3NAY7OnDtIN9XjT7fAyTepjFnlb4cGYJTMvs48BrgPzMAsLThGhG8XTCe57GAfzpTiFMBLweuEAPIr+QiTQOV9jKIeBVwIeA6wHtHtthzm05KZhcNuWzP4k6QAzfXx5fzcpEKP084yTd35cB6VXPoD4gOdwhvuh8IBO5bgVeHBvm3uSFmZM9z0nAYJwR+v2RuZwDOArgjfhP4N/Bp4DHAX0f2PMumI79/Y3Bhazv+nhe2ceCbAS+Li9Xg/LPMA5uy1Ch67OsDX5+IcaY8zQ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Lf/MRdIkdWnBKNi9lxGwHl5pSC8vuAWlNRpucQrpvgzSBD1/8ua0ndKe9GO//p4lG3vzmQ1kfbGVLqVRxgDSKmODLoH32J9xz/yGArAe1w9sCEI1XSNVNVZrKjxin/LaV6JwWS1YziQQy7rPBLrn6/IMV4LNoEAvqqjukX8DTYV1g8V/BF+Xt+d4SU/kxyV9SIO09R/7wp4v1CGVHssTpW7W4KrFugv6MvtizyoFPxSA2xZbMPoRjl7z4m03nfHvpUnueAa2Btr5HY58KY0nlB/9zodOYzZtFwDO7IxGVw0wg1Pb+hYwntAhfCF2uyZNyIDXr/c0DySsf9eR9NwFgFetJR2JqUY7DY90mdbV+y6qCizT22bNUjoc7QOtMrFtA1hjG9jJzaxrUG80JSxnrW0YC2QcYUCcKeFh7rSDUbcN4B084gF/y/TO0oxF306btIEqgCe9fK2Td8ezbkXaYCJoGwcPWifV5wUVwH1aczxjmcDxo3gWJqnBW4tgCnh2p8YrgMcDuj5mYiZRZceakawmy3FNapjk+b+PRPdx412NUQG8K8sPe1/X1c98WTrq9+zy439m5cxCeoBgFq0CeBbLuO9DlMXpXpgnKWbx5BXAs1jG1ofIz3/5majBShtbZzHABRXAAxh1hEOWxeXlUa0RTnW1KVUAr2avKV+d30ibVTq5AnjKkOw+9/xAiacjZlXQUwHcHQRTvjI/UOL//Nua6N4+LLJro1QA73oFNr+/x6kMzE4fXzG3gL8svleFsFDfGu3ygObmdx7BCBXAI1iEDafgdzY85SJALVz38wSewPCYu+qDNRCeKvY0jIX/s2oVwNNfTtdQecwDAp50sd7arJunMjxXaB3Etr5ft3VrVgBv3eT1hn1aoAK4T2vWsbZugQrgrZu83rBPC1QA92nNOtbWLVABvHWT1xv2aYEK4D6tWcfaugUqgLdu8nrDPi1QAdynNetYW7fAfwEifqJjO+S6ggAAAABJRU5ErkJggg==\" width=\"88\" height=\"34\" style=\"width: 88px; height: 34px;\"\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = calcVolume(r)\r\n\r\n    y = r;\r\nend","test_suite":"%%\r\nr = 2;\r\ny_correct = 33.5103;\r\nassert(abs(calcVolume(r) - y_correct) \u003c 0.1)\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":808745,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":63,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-12-17T14:17:48.000Z","updated_at":"2026-04-05T10:34:30.000Z","published_at":"2020-12-17T14:17:48.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCalculate the volume of a football given the ball radius r, using the formula below:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eV_{sphere} = \\\\frac43 \\\\pi r^3\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":304,"title":"Bottles of beer","description":"Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.","description_html":"\u003cp\u003eGiven an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.\u003c/p\u003e","function_template":"function remaining = bottles_of_beer(on_the_wall)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 99;\r\ny_correct = 98;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n\r\n%%\r\nx = 9;\r\ny_correct = 8;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n\r\n%%\r\nx = 1;\r\ny_correct = 0;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":21,"comments_count":10,"created_by":1022,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2272,"test_suite_updated_at":"2012-02-10T05:16:43.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-02-10T05:16:43.000Z","updated_at":"2026-02-14T15:41:12.000Z","published_at":"2012-02-10T05:16:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43143,"title":"Calculate the answer to life the universe and everything","description":"\u003chttps://en.wikipedia.org/wiki/42_(number)\u003e  \r\n\r\n","description_html":"\u003cp\u003e\u003ca href = \"https://en.wikipedia.org/wiki/42_(number)\"\u003ehttps://en.wikipedia.org/wiki/42_(number)\u003c/a\u003e\u003c/p\u003e","function_template":"function y = TheAnswer()\r\n  y = pi;\r\nend","test_suite":"%%\r\ny_correct = 45-3;\r\nassert(isequal(TheAnswer(),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":14644,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":119,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-07T09:17:52.000Z","updated_at":"2026-02-12T18:40:12.000Z","published_at":"2016-10-07T09:17:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"https://en.wikipedia.org/wiki/42_(number)\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://en.wikipedia.org/wiki/42_(number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e)\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44664,"title":"function to compute root mean square of first nn positive odd integers","description":"Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 84px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 42px; transform-origin: 407px 42px; vertical-align: baseline; \"\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 42px; text-align: left; transform-origin: 384px 42px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 367px 8px; transform-origin: 367px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function orms = odd_rms(nn)\r\n  \r\nend","test_suite":"%%\r\nnn = 3;\r\norms_correct = 3.4156\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)\r\n\r\n%%\r\nnn = 10;\r\norms_correct = 11.5325\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)\r\n\r\n%%\r\nnn = 1;\r\norms_correct = 1\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":171559,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":58,"test_suite_updated_at":"2021-12-31T17:41:47.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-05-29T15:13:46.000Z","updated_at":"2026-02-17T08:34:38.000Z","published_at":"2018-05-29T15:13:46.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":42632,"title":"Your favourite city!","description":"Type your favourite city.","description_html":"\u003cp\u003eType your favourite city.\u003c/p\u003e","function_template":"function y = favoriteCity()\r\n  y = '';\r\nend","test_suite":"%%\r\nassert(ischar(favoriteCity()))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":0,"created_by":8703,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":316,"test_suite_updated_at":"2015-09-23T05:22:46.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-09-23T05:19:30.000Z","updated_at":"2026-02-12T19:05:00.000Z","published_at":"2015-09-23T05:19:30.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eType your favourite city.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":748,"title":"Wrapping the Tower of Pisa","description":"The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\r\n\r\nNote: inspired on problem 167","description_html":"\u003cp\u003eThe famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\u003c/p\u003e\u003cp\u003eNote: inspired on problem 167\u003c/p\u003e","function_template":"function y = paperneed(s,a)\r\n  y = s;\r\nend","test_suite":"%%\r\ns = pi;\r\na = pi^2;\r\ny_correct = 2*pi^4 + pi^3;\r\nassert(abs(paperneed(s,a)-y_correct)\u003c1e-12)\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":5,"created_by":4638,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":302,"test_suite_updated_at":"2012-06-06T20:53:04.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-06-05T11:41:10.000Z","updated_at":"2026-02-18T21:57:01.000Z","published_at":"2012-06-05T11:41:57.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: inspired on problem 167\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2053,"title":"Strange Number Algorithms","description":"Three integer numbers will be provided to you. Write a function to \r\n\r\n Step1: Multiply first number by 3.\r\n Step2: Add 6 with the getting result.\r\n Step3: divide it by 3.\r\n Step4: Subtract the first number.\r\n\r\n Step1: Double the second number.\r\n Step2: Add 9 with result.\r\n Step3: Subtract 3 with the result.\r\n Step4: Divide the result by 2.\r\n Step5: Subtract the result with the second number.\r\n\r\n Step1:Add 7 to the third number.\r\n Step2:Multiply the number with 2.\r\n Step3:Subtract 4 from the result.\r\n Step4:Divide the result by 2.\r\n Step5:Subtract the third number from the result.\r\n\r\nReturn a single row matrix with the three answers.\r\n\r\n","description_html":"\u003cp\u003eThree integer numbers will be provided to you. Write a function to\u003c/p\u003e\u003cpre\u003e Step1: Multiply first number by 3.\r\n Step2: Add 6 with the getting result.\r\n Step3: divide it by 3.\r\n Step4: Subtract the first number.\u003c/pre\u003e\u003cpre\u003e Step1: Double the second number.\r\n Step2: Add 9 with result.\r\n Step3: Subtract 3 with the result.\r\n Step4: Divide the result by 2.\r\n Step5: Subtract the result with the second number.\u003c/pre\u003e\u003cpre\u003e Step1:Add 7 to the third number.\r\n Step2:Multiply the number with 2.\r\n Step3:Subtract 4 from the result.\r\n Step4:Divide the result by 2.\r\n Step5:Subtract the third number from the result.\u003c/pre\u003e\u003cp\u003eReturn a single row matrix with the three answers.\u003c/p\u003e","function_template":"function amat = strange(n)\r\n  amat = n(1)-n(1)*3+6/3;\r\nend","test_suite":"%%\r\nn = [1 10 100];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [0 499 999];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [999 666 333];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [7 63 347];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":17471,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":101,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-12-15T06:55:46.000Z","updated_at":"2026-02-20T14:09:20.000Z","published_at":"2013-12-15T06:56:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThree integer numbers will be provided to you. Write a function to\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Step1: Multiply first number by 3.\\n Step2: Add 6 with the getting result.\\n Step3: divide it by 3.\\n Step4: Subtract the first number.\\n\\n Step1: Double the second number.\\n Step2: Add 9 with result.\\n Step3: Subtract 3 with the result.\\n Step4: Divide the result by 2.\\n Step5: Subtract the result with the second number.\\n\\n Step1:Add 7 to the third number.\\n Step2:Multiply the number with 2.\\n Step3:Subtract 4 from the result.\\n Step4:Divide the result by 2.\\n Step5:Subtract the third number from the result.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn a single row matrix with the three answers.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44093,"title":"Determinants","description":"Given a square matrix(A), find the determinant(d).\r\n\r\nFor example:\r\n\r\nA = [1,3;4,5]\r\n\r\nd = 1*5-4*3 = -7","description_html":"\u003cp\u003eGiven a square matrix(A), find the determinant(d).\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003eA = [1,3;4,5]\u003c/p\u003e\u003cp\u003ed = 1*5-4*3 = -7\u003c/p\u003e","function_template":"function d = your_fcn_name(A)\r\n  d = A;\r\nend","test_suite":"%%\r\nA = [1,3;4,5];\r\nd_correct = -7;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [6,0,0,5;1,7,2,-5;2,0,0,0;8,3,1,8];\r\nd_correct = 10;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [1,0,4;2,3,2;0,5,-2];\r\nd_correct = 24;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [4,0,-7,3,-5;0,0,2,0,0;7,3,-6,4,-8;5,0,5,2,-3;0,0,9,-1,2];\r\nd_correct = 6;\r\nassert(isequal(your_fcn_name(A),d_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":126209,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":72,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-04-13T19:49:36.000Z","updated_at":"2026-03-16T09:24:14.000Z","published_at":"2017-04-13T19:52:06.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a square matrix(A), find the determinant(d).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA = [1,3;4,5]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ed = 1*5-4*3 = -7\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2416,"title":"Let's see how peculiar we can get","description":"The task is to multiply two numbers. But do it in the most peculiar possible way.","description_html":"\u003cp\u003eThe task is to multiply two numbers. But do it in the most peculiar possible way.\u003c/p\u003e","function_template":"function ans = multPec(x,y)\r\n  x*y;\r\nend","test_suite":"%%\r\nassert(isequal(multPec(2,3),6))\r\n\r\nassert(isequal(multPec(2,2),4))\r\n\r\nassert(isequal(multPec(10,-10),-100))\r\n\r\nassert(isequal(multPec(.2,-.3),-.06))\r\n\r\nassert(isequal(multPec(2i,1i),-2))","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":199,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-13T17:25:26.000Z","updated_at":"2026-02-17T14:36:31.000Z","published_at":"2014-07-13T17:26:22.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe task is to multiply two numbers. But do it in the most peculiar possible way.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1667,"title":"What number has this problem?","description":"This problem is added because it is problem number *???* in the \"Community\" problems section.\r\n\r\n\u003chttp://www.mathworks.de/matlabcentral/cody/?sort=\u0026term=group%3ACommunity A lots of problems here!\u003e\r\n\r\n\r\nThank you, Community!\r\n\r\nand... \r\n\r\nThank you Matlab!!","description_html":"\u003cp\u003eThis problem is added because it is problem number \u003cb\u003e???\u003c/b\u003e in the \"Community\" problems section.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://www.mathworks.de/matlabcentral/cody/?sort=\u0026term=group%3ACommunity\"\u003eA lots of problems here!\u003c/a\u003e\u003c/p\u003e\u003cp\u003eThank you, Community!\u003c/p\u003e\u003cp\u003eand...\u003c/p\u003e\u003cp\u003eThank you Matlab!!\u003c/p\u003e","function_template":"function nr = celebrating_Problem()\r\n  nr = ???;\r\nend","test_suite":"%%\r\nweCelebrateProblemNumber = 1000;\r\nassert(isequal(celebrating_Problem(),weCelebrateProblemNumber))\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":2,"created_by":3038,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":404,"test_suite_updated_at":"2013-06-20T22:47:19.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-20T22:38:15.000Z","updated_at":"2026-03-10T15:17:04.000Z","published_at":"2013-06-20T22:47:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis problem is added because it is problem number\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e???\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e in the \\\"Community\\\" problems section.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.de/matlabcentral/cody/?sort=\u0026amp;term=group%3ACommunity\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eA lots of problems here!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThank you, Community!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThank you Matlab!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44444,"title":"Problem 44444 !!!  free beer everyone","description":"just say hallelujah to solve this problem","description_html":"\u003cp\u003ejust say hallelujah to solve this problem\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = 'oups'%%%\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 'hallelujah';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":156466,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":111,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-12-08T13:35:52.000Z","updated_at":"2026-02-20T14:19:26.000Z","published_at":"2017-12-08T13:36:00.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ejust say hallelujah to solve this problem\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1230,"title":"Who is the smartest MATLAB programmer?","description":"Who is the smartest MATLAB programmer?\r\n\r\nExamples:\r\n\r\n  Input x = 'Is it Obama?'\r\n  Output = 'Me!'\r\n\r\n  Input x = 'Who ?'\r\n  Output = 'Me!'\r\n\r\nReturn 'Me!' to all inputs. (Note: this is only a joke!)","description_html":"\u003cp\u003eWho is the smartest MATLAB programmer?\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput x = 'Is it Obama?'\r\nOutput = 'Me!'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eInput x = 'Who ?'\r\nOutput = 'Me!'\r\n\u003c/pre\u003e\u003cp\u003eReturn 'Me!' to all inputs. (Note: this is only a joke!)\u003c/p\u003e","function_template":"function y = smartest(x)\r\n  y = 'Not me!';\r\nend","test_suite":"%%\r\nx = 'I have been using MATLAB for 50 years!';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = 'I developed MATLAB!';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = '';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = 1;\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":6,"comments_count":3,"created_by":10338,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":791,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-30T01:41:14.000Z","updated_at":"2026-03-18T08:03:59.000Z","published_at":"2013-01-30T01:41:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWho is the smartest MATLAB programmer?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input x = 'Is it Obama?'\\nOutput = 'Me!'\\n\\nInput x = 'Who ?'\\nOutput = 'Me!']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn 'Me!' to all inputs. (Note: this is only a joke!)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1681,"title":"Do you like your boss?","description":"Do you like your boss?\r\nAnswer can be any string!\r\n\r\nFor example:\r\n\r\nBoss = 'Do you like your boss?';\r\n\r\nOutput = 'yes'\r\n\r\nor \r\n\r\nBoss = 'Do you like your boss?';\r\n\r\nOutput = 'Sometimes'\r\n\r\nor\r\n\r\nBoss = 'Do you like your boss?'\r\n\r\nOutput = 'No'\r\n\r\nBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\r\n","description_html":"\u003cp\u003eDo you like your boss?\r\nAnswer can be any string!\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?';\u003c/p\u003e\u003cp\u003eOutput = 'yes'\u003c/p\u003e\u003cp\u003eor\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?';\u003c/p\u003e\u003cp\u003eOutput = 'Sometimes'\u003c/p\u003e\u003cp\u003eor\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?'\u003c/p\u003e\u003cp\u003eOutput = 'No'\u003c/p\u003e\u003cp\u003eBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\u003c/p\u003e","function_template":"function Answer = YourBoss(Qustion)\r\n  Answer = 'So whats the answer???';\r\nend","test_suite":"%%\r\nx = 'Do you like your boss?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Does your boss smell funny?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Is your boss a man or a woman?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Is your boss mean or nice?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Do you see your boss often?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'If your boss were an animal, what type of animal would he or she be?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'On a scale from one to ten, where does your boss rank?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Maybe you are your own boss...';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Maybe your boss is standing behind you, with that glare on his face, tapping his foot with his arms folded...';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))","published":true,"deleted":false,"likes_count":5,"comments_count":2,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":638,"test_suite_updated_at":"2013-06-27T16:47:48.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-27T15:50:45.000Z","updated_at":"2026-02-17T15:53:42.000Z","published_at":"2013-06-27T16:00:56.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDo you like your boss? Answer can be any string!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eor\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'Sometimes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eor\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'No'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1384,"title":"Who invented zero?","description":"We know the importance zero in computer science, mathematics... but who invented zero?\r\n\r\nClue:\r\n\r\nHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.","description_html":"\u003cp\u003eWe know the importance zero in computer science, mathematics... but who invented zero?\u003c/p\u003e\u003cp\u003eClue:\u003c/p\u003e\u003cp\u003eHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.\u003c/p\u003e","function_template":"function y = zero()\r\n  y = 'zero';\r\nend","test_suite":"%%\r\nassert(isequal(zero(),'Aryabhata'))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":4,"created_by":6975,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":604,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-03-25T09:04:11.000Z","updated_at":"2026-02-17T15:54:16.000Z","published_at":"2013-03-25T09:04:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWe know the importance zero in computer science, mathematics... but who invented zero?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eClue:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":49962,"title":"When the sum of the squares is a cubic...","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 167px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 83.5px; transform-origin: 407px 83.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConsider the following equality:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 65px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 32.5px; text-align: left; transform-origin: 384px 32.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cimg class=\"imageNode\" width=\"314\" height=\"59\" style=\"vert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ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0ndyc/Pv/bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKv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L6n8NfB2sQ6XFqPh+zli0gEWUQUqkQOMjapAYcZw2Rmuc+KkEWt+IfBHhEqDFqGq/a7iNR96C2Quyn0BLD+lel0UAeWC/tz+0ldHUHMI03RYbOwt1jLNM00m5pEUAkhQNrEcKBk4xmvU6KKACiiigAooooA5eX4b+FpNTutRSwmtr67keS4urS+nt5ZSxyQzxupK8fdzgdhW1o+iab4f01LDRbKKztVJYRxLjLHqxPUk9yeTV6igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k=\" data-image-state=\"image-loaded\"\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eFor a given value of n (i.e., num in the problem statement), determine the values of a's and b that satisfy the equality above. The answer should be put in a vector where the first \"num\" entries are the values of a's and the last entry is b. There is no unique answer to each of the problems; however, your answer will be checked against the requirement.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = square_cubic(num)\r\n  y = ones(num);\r\nend","test_suite":"%%\r\nnum=1;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=2;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=3;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=4;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=5;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=6;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":180632,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":22,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2021-01-23T22:19:52.000Z","updated_at":"2026-03-16T10:09:27.000Z","published_at":"2021-01-23T22:20:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eConsider the following equality:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"59\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"314\\\"/\u003e\u003cw:attr w:name=\\\"verticalAlign\\\" w:val=\\\"baseline\\\"/\u003e\u003cw:attr w:name=\\\"altText\\\" w:val=\\\"\\\"/\u003e\u003cw:attr w:name=\\\"relationshipId\\\" w:val=\\\"rId1\\\"/\u003e\u003c/w:customXmlPr\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor a given value of n (i.e., num in the problem statement), determine the values of a's and b that satisfy the equality above. The answer should be put in a vector where the first \\\"num\\\" entries are the values of a's and the last entry is b. There is no unique answer to each of the problems; however, your answer will be checked against the requirement.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"target\":\"/media/image1.jpeg\",\"relationshipId\":\"rId1\"}]},{\"partUri\":\"/media/image1.jpeg\",\"contentType\":\"image/jpeg\",\"content\":\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4RE6RXhpZgAATU0AKgAAAAgABAE7AAIAAAAlAAAISodpAAQAAAABAAAIcJydAAEAAABKAAAQ6OocAAcAAAgMAAAAPgAAAAAc6gAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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RhLWFkMzEtZDMzZDc1MTgyZjFiIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPjx4bXA6Q3JlYXRlRGF0ZT4yMDIxLTAxLTIzVDE3OjE0OjMxLjgzNTwveG1wOkNyZWF0ZURhdGU+PC9yZGY6RGVzY3JpcHRpb24+PHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9InV1aWQ6ZmFmNWJkZDUtYmEzZC0xMWRhLWFkMzEtZDMzZDc1MTgyZjFiIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iPjxkYzpjcmVhdG9yPjxyZGY6U2VxIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+PHJkZjpsaT5LQVNUQU5ZQSBEb2RkeSAtIChOUyZhbXA7TCkgLSBLSU5FQ1RSSUNTPC9yZGY6bGk+PC9yZGY6U2VxPg0KCQkJPC9kYzpjcmVhdG9yPjwvcmRmOkRlc2NyaXB0aW9uPjwvcmRmOlJERj48L3g6eG1wbWV0YT4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0ndyc/Pv/bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKv/AABEIADsBOgMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqO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AKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k=\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43740,"title":"Create a New_Word","description":"The output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end. ","description_html":"\u003cp\u003eThe output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end.\u003c/p\u003e","function_template":"function y = New_Word(Old_Word)\r\n  y = Old_Word;\r\nend","test_suite":"%%\r\nOld_Word = 'Welcome';\r\ny_correct = 'meelcoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Pertinacious';\r\ny_correct = 'usertinacioy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Homogenous';\r\ny_correct = 'usomogenoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Homologous';\r\ny_correct = 'usomologoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Extemperaneous';\r\ny_correct = 'usxtemperaneoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Deterministic';\r\ny_correct = 'iceterministy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":100857,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":53,"test_suite_updated_at":"2016-12-22T18:10:34.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-12-07T16:56:19.000Z","updated_at":"2026-03-02T15:09:16.000Z","published_at":"2016-12-07T16:56:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1437,"title":"Who has power to do everything in this world?","description":"There is only one person who is older than this universe. \r\nHe is Indian version of Chuck Norris.","description_html":"\u003cp\u003eThere is only one person who is older than this universe. \r\nHe is Indian version of Chuck Norris.\u003c/p\u003e","function_template":"function y = your_fcn_name\r\n  y;\r\nend","test_suite":"%%\r\nassert(isequal(your_fcn_name,'Rajnikanth'))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":3,"created_by":10792,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":486,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-04-19T19:24:35.000Z","updated_at":"2026-03-29T03:50:18.000Z","published_at":"2013-04-19T19:24:35.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThere is only one person who is older than this universe. He is Indian version of Chuck Norris.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44524,"title":"Perimeter of a quadrilateral","description":"There are four cars starting at a point.  The first car points north, the second one points east, the third one points south, and the last one points west.  Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west.  After t hours, the position of the cars can be viewed as a quadrilateral from space.  Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.","description_html":"\u003cp\u003eThere are four cars starting at a point.  The first car points north, the second one points east, the third one points south, and the last one points west.  Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west.  After t hours, the position of the cars can be viewed as a quadrilateral from space.  Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.\u003c/p\u003e","function_template":"function p = total_distance(n,e,s,w,t)\r\n  p = sqrt(n*e*s*t);\r\nend","test_suite":"%%\r\nn=10;\r\ne=10;\r\ns=10;\r\nw=10;\r\nt=2;\r\ny_correct=113.1371;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n%%\r\nn=15;\r\ne=7;\r\ns=3;\r\nw=15;\r\nt=1.5;\r\ny_correct=91.0185;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n%%\r\nn=11;\r\ne=21;\r\ns=31;\r\nw=41;\r\nt=1.7;\r\ny_correct=263.5003;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":180632,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":59,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-02-16T18:58:53.000Z","updated_at":"2026-02-18T15:09:46.000Z","published_at":"2018-02-16T18:58:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThere are four cars starting at a point. The first car points north, the second one points east, the third one points south, and the last one points west. Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west. After t hours, the position of the cars can be viewed as a quadrilateral from space. Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1188,"title":"The Answer to Life, the Universe, and Everything","description":"A variation of a previous Hitchhiker's Guide to the Galaxy problem.\r\n\r\n*Inputs:* Life, the Universe, and Everything\r\n\r\n*Output:* The Answer","description_html":"\u003cp\u003eA variation of a previous Hitchhiker's Guide to the Galaxy problem.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInputs:\u003c/b\u003e Life, the Universe, and Everything\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e The Answer\u003c/p\u003e","function_template":"function answer = answer_to(life,universe,everything)\r\n  answer = [];\r\nend","test_suite":"%%\r\nanswer = 42;\r\nassert(isequal(answer_to('life'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('universe'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('everything'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('life','universe','everything'),answer))","published":true,"deleted":false,"likes_count":5,"comments_count":4,"created_by":1057,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":578,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-08T12:59:24.000Z","updated_at":"2026-03-13T22:22:07.000Z","published_at":"2013-01-08T12:59:46.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA variation of a previous Hitchhiker's Guide to the Galaxy problem.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInputs:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Life, the Universe, and Everything\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The Answer\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":167,"title":"Pizza!","description":"Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.]\r\nNon-scored bonus question: Why is the function interesting?","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 51px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 25.5px; transform-origin: 407px 25.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 102.5px 8px; transform-origin: 102.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a circular pizza with radius\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 3.5px 8px; transform-origin: 3.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ez\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 45.5px 8px; transform-origin: 45.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and thickness\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4px 8px; transform-origin: 4px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ea\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 88px 8px; transform-origin: 88px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, return the pizza's volume. [\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 3.5px 8px; transform-origin: 3.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ez\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 74px 8px; transform-origin: 74px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e is first input argument.]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 190px 8px; transform-origin: 190px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eNon-scored bonus question: Why is the function interesting?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = pizza(z,a)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('pizza.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp') || ...\r\n          contains(filetext, 'if') || contains(filetext, 'switch'); \r\nassert(~illegal)\r\n\r\n%%\r\nz = 1;\r\na = 1;\r\nv_correct = pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 2;\r\na = 1;\r\nv_correct = 4*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 1;\r\na = 2;\r\nv_correct = 2*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 2;\r\na = 2;\r\nv_correct = 8*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n","published":true,"deleted":false,"likes_count":372,"comments_count":313,"created_by":39,"edited_by":223089,"edited_at":"2022-12-19T07:41:42.000Z","deleted_by":null,"deleted_at":null,"solvers_count":23782,"test_suite_updated_at":"2022-12-19T07:41:42.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-29T16:17:01.000Z","updated_at":"2026-04-06T18:54:57.000Z","published_at":"2012-01-29T16:21:23.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a circular pizza with radius\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ez\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e and thickness\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ea\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, return the pizza's volume. [\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ez\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e is first input argument.]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNon-scored bonus question: Why is the function interesting?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":157,"title":"The Hitchhiker's Guide to MATLAB","description":"Output logical \"true\" if the input is the answer to life, the universe and everything. Otherwise, output logical \"false\".","description_html":"\u003cp\u003eOutput logical \"true\" if the input is the answer to life, the universe and everything. Otherwise, output logical \"false\".\u003c/p\u003e","function_template":"function y = zaphod(x)\r\n  y = false\r\nend","test_suite":"%%\r\nx = 41;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 42;\r\ny_correct = true;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 43;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 44;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 45;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 46;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 47;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 48;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 49;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 50;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))","published":true,"deleted":false,"likes_count":54,"comments_count":18,"created_by":39,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3408,"test_suite_updated_at":"2012-01-29T03:52:07.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-29T03:52:07.000Z","updated_at":"2026-03-26T05:13:23.000Z","published_at":"2012-01-29T03:53:05.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput logical \\\"true\\\" if the input is the answer to life, the universe and everything. Otherwise, output logical \\\"false\\\".\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":149,"title":"Is my wife right?","description":"Regardless of input, output the string 'yes'.","description_html":"\u003cp\u003eRegardless of input, output the string 'yes'.\u003c/p\u003e","function_template":"function out = wiferight(in)\r\n  out='no';\r\nend","test_suite":"%%\r\nx = 'But I''m actually right this time';\r\ny_correct = 'yes';\r\nassert(isequal(wiferight(x),y_correct))\r\n\r\n%%\r\nx = 'But you just said that 2+2=3';\r\ny_correct = 'yes';\r\nassert(isequal(wiferight(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":294,"comments_count":71,"created_by":39,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":17425,"test_suite_updated_at":"2012-01-29T04:12:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-28T17:50:24.000Z","updated_at":"2026-03-29T20:41:47.000Z","published_at":"2012-01-29T04:12:44.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRegardless of input, output the string 'yes'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44060,"title":"Volume Pillar","description":"Calculate the volume of a pillar with radius l and heigth ar.","description_html":"\u003cp\u003eCalculate the volume of a pillar with radius l and heigth ar.\u003c/p\u003e","function_template":"function y = Pillar_Size(l,ar)\r\n  y = x;\r\nend","test_suite":"%%\r\nl = 1;\r\nar = 2;\r\ny_correct = pi*2;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))\r\n\r\n%%\r\nl = 12;\r\nar = 25;\r\ny_correct = pi*3600;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))\r\n\r\n%%\r\nl = 6;\r\nar = 2;\r\ny_correct = pi*72;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))","published":true,"deleted":false,"likes_count":15,"comments_count":1,"created_by":99516,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2096,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-06T15:36:59.000Z","updated_at":"2026-04-06T09:10:01.000Z","published_at":"2017-02-06T15:36:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCalculate the volume of a pillar with radius l and heigth ar.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43571,"title":"How many hours are there in a day in Italy?","description":"Remember \"European Summer Time\"","description_html":"\u003cp\u003eRemember \"European Summer Time\"\u003c/p\u003e","function_template":"function HH = your_fcn_name(y,m,d)\r\n  HH = [y,m,d];\r\nend","test_suite":"%%\r\ny = 2016;\r\nm = 1;\r\nd = 1;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n%%\r\ny = 2016;\r\nm = 12;\r\nd = 31;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n%%\r\ny = 1965;\r\nm = 12;\r\nd = 7;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n\r\n\r\n%%\r\ny = 2016;\r\nm = 10;\r\nd = 30;\r\ny_correct = 25;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n%%\r\ny = 2016;\r\nm = 3;\r\nd = 27;\r\ny_correct = 23;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":14644,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":40,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-17T14:33:18.000Z","updated_at":"2026-03-06T12:05:55.000Z","published_at":"2016-10-17T14:36:36.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRemember \\\"European Summer Time\\\"\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1561,"title":"Reverse CHECKBOX MATRIX with 69","description":"Create a reverse checkbox matrix with '69'.   \r\nWhere the size is the input and output will be a square checkbox matrix. \r\n\r\nExample\r\n\r\nIf input is 4 then output will be \r\n\r\n    [ 0    69     0    69 \r\n     69     0    69     0 \r\n      0    69     0    69 \r\n     69     0    69     0]\r\n","description_html":"\u003cp\u003eCreate a reverse checkbox matrix with '69'.   \r\nWhere the size is the input and output will be a square checkbox matrix.\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003eIf input is 4 then output will be\u003c/p\u003e\u003cpre\u003e    [ 0    69     0    69 \r\n     69     0    69     0 \r\n      0    69     0    69 \r\n     69     0    69     0]\u003c/pre\u003e","function_template":"function y = ChecK69(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct = [0 69 0;69 0 69;0 69 0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 4;\r\ny_correct = [0    69     0    69;\r\n            69     0    69     0;\r\n             0    69     0    69;\r\n            69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 5;\r\ny_correct =[0    69     0    69     0;\r\n           69     0    69     0    69;\r\n            0    69     0    69     0;\r\n           69     0    69     0    69;\r\n            0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct =[0    69     0    69     0    69;\r\n           69     0    69     0    69     0;\r\n            0    69     0    69     0    69;\r\n           69     0    69     0    69     0;\r\n            0    69     0    69     0    69;\r\n           69     0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 8;\r\ny_correct =[0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":13514,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":86,"test_suite_updated_at":"2013-06-06T11:31:41.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-06T11:26:14.000Z","updated_at":"2026-03-05T16:34:45.000Z","published_at":"2013-06-06T11:26:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a reverse checkbox matrix with '69'. Where the size is the input and output will be a square checkbox matrix.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf input is 4 then output will be\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    [ 0    69     0    69 \\n     69     0    69     0 \\n      0    69     0    69 \\n     69     0    69     0]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44441,"title":"Jack's hand in \"Titanic\" ♤","description":"Given a series of cards, return true if it's the famous hand. Note that i pretend that  poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?","description_html":"\u003cp\u003eGiven a series of cards, return true if it's the famous hand. Note that i pretend that  poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('your_fcn_name.m'); \r\nassert(isempty(strfind(filetext, 'regexp')),'regexp() and its family are forbidden') \r\nassert(isempty(strfind(filetext, 'regexprep')),'regexprep() forbidden')\r\n%%\r\nx = [10 3 10 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 8 1 7 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [10 5 10 5 10];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [4 4 6 3 5];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [2 4 2 4 4];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 9 9 9 9];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 7 8 7 8];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [nan 3 10 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [10 'k' 'j' 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 7 8 0 8];\r\ny_correct = false; %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 17 8 17 8] ;\r\ny_correct = false %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [0 7 0 7 0];\r\ny_correct = false; %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 3 3 8 3];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 .3 .3 8 .3];\r\ny_correct = false;  %invalid card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 1 1 5 5];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":156466,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":27,"test_suite_updated_at":"2017-12-09T11:50:03.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-12-06T14:41:25.000Z","updated_at":"2025-12-07T15:59:23.000Z","published_at":"2017-12-06T14:41:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1719,"title":"Dice face matrix!","description":"This is dice simulator, but instead of making a random die number, you will receive an \"pre-rolled\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\r\n\r\n  rollnum = 1;\r\n\r\nThen the output will be:\r\n\r\n  diceFace =\r\n  \r\n       0     0     0\r\n       0     1     0\r\n       0     0     0\r\n\r\nAnother example:\r\n\r\n  rollnum = 5;\r\n\r\nThen the output will be:\r\n\r\n  diceFace =\r\n  \r\n       1     0     1\r\n       0     1     0\r\n       1     0     1\r\nAnd so on for 1-6, well that is it!\r\nJust note the 1 and 0 are numbers not char's or strings...\r\nGood luck!","description_html":"\u003cp\u003eThis is dice simulator, but instead of making a random die number, you will receive an \"pre-rolled\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003erollnum = 1;\r\n\u003c/pre\u003e\u003cp\u003eThen the output will be:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ediceFace =\r\n\u003c/pre\u003e\u003cpre\u003e       0     0     0\r\n       0     1     0\r\n       0     0     0\u003c/pre\u003e\u003cp\u003eAnother example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003erollnum = 5;\r\n\u003c/pre\u003e\u003cp\u003eThen the output will be:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ediceFace =\r\n\u003c/pre\u003e\u003cpre\u003e       1     0     1\r\n       0     1     0\r\n       1     0     1\r\nAnd so on for 1-6, well that is it!\r\nJust note the 1 and 0 are numbers not char's or strings...\r\nGood luck!\u003c/pre\u003e","function_template":"function diceFace = rollADie(rollnum)\r\n  diceFace = rollnum;\r\nend","test_suite":"%%\r\nrollnum = 1;\r\ndiceFace = [0 0 0; 0 1 0; 0 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 2;\r\ndiceFace = [0 0 1; 0 0 0; 1 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 3;\r\ndiceFace = [0 0 1; 0 1 0; 1 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 4;\r\ndiceFace = [1 0 1; 0 0 0; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 5;\r\ndiceFace = [1 0 1; 0 1 0; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 6;\r\ndiceFace = [1 0 1; 1 0 1; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":136,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":41,"created_at":"2013-07-16T15:48:23.000Z","updated_at":"2026-04-03T02:36:03.000Z","published_at":"2013-07-16T15:48:30.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is dice simulator, but instead of making a random die number, you will receive an \\\"pre-rolled\\\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[rollnum = 1;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThen the output will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[diceFace =\\n\\n       0     0     0\\n       0     1     0\\n       0     0     0]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnother example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[rollnum = 5;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThen the output will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[diceFace =\\n\\n       1     0     1\\n       0     1     0\\n       1     0     1\\nAnd so on for 1-6, well that is it!\\nJust note the 1 and 0 are numbers not char's or strings...\\nGood luck!]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1712,"title":"NO _________ ALLOWED....","description":"So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0.  For example:\r\n\r\n  Sentence = 'The birds in the field are eating bird seed';\r\n  Not_allowed = 'field'\r\n\r\nso the output will be, because field is found in the sentence:\r\n\r\n  Output = 1; \r\n\r\nAnother example:\r\n\r\n  Sentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\n  Not_allowed = 'oven'\r\n\r\nso the output will be, because oven is not found in the sentence:\r\n\r\n  Output = 0; \r\n\r\nThat is it!\r\n\r\nHave Fun!","description_html":"\u003cp\u003eSo you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0.  For example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eSentence = 'The birds in the field are eating bird seed';\r\nNot_allowed = 'field'\r\n\u003c/pre\u003e\u003cp\u003eso the output will be, because field is found in the sentence:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eOutput = 1; \r\n\u003c/pre\u003e\u003cp\u003eAnother example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eSentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\nNot_allowed = 'oven'\r\n\u003c/pre\u003e\u003cp\u003eso the output will be, because oven is not found in the sentence:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eOutput = 0; \r\n\u003c/pre\u003e\u003cp\u003eThat is it!\u003c/p\u003e\u003cp\u003eHave Fun!\u003c/p\u003e","function_template":"function output = NotAllowed(Sentence, Not_allowed)\r\n  output = Not_allowed;\r\n  output = Sentence;\r\nend","test_suite":"%%\r\nSentence = 'The birds in the field are eating bird seed';\r\nNot_allowed = 'field'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\nNot_allowed = 'oven'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Oh where, oh where has my little dog gone?';\r\nNot_allowed = 'where'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Insanity: doing the same thing over and over again and expecting different results...';\r\nNot_allowed = 'Einstein'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Wheres the cream filling?';\r\nNot_allowed = 'cream'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'MATLAB is the coolest!';\r\nNot_allowed = 'MATLAB'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'No no, you got it all wrong!';\r\nNot_allowed = 'No'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'This planet, with all its appalling immensity, is to electric currents virtually no more than a small metal ball.';\r\nNot_allowed = 'Tesla'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":226,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-12T16:08:38.000Z","updated_at":"2026-02-22T02:23:52.000Z","published_at":"2013-07-12T16:08:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0. For example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Sentence = 'The birds in the field are eating bird seed';\\nNot_allowed = 'field']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso the output will be, because field is found in the sentence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Output = 1;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnother example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Sentence = 'If the sky is blue on earth, what is the sky color on mars?';\\nNot_allowed = 'oven']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso the output will be, because oven is not found in the sentence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Output = 0;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThat is it!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHave Fun!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1052,"title":"Elapsed time is -0.005204 seconds.","description":"Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\r\n\r\n  tic\r\n  pause(1)\r\n  superfast()\r\n  toc\r\n\r\n  Elapsed time is 0.9876 seconds.","description_html":"\u003cp\u003eWrite a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003etic\r\npause(1)\r\nsuperfast()\r\ntoc\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eElapsed time is 0.9876 seconds.\r\n\u003c/pre\u003e","function_template":"function y = superfast(x)\r\n  pause(-1)\r\nend","test_suite":"%%\r\ntic\r\npause(1)\r\nsuperfast()\r\ntimeElapsed = toc;\r\nassert(timeElapsed \u003c 1)\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":450,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":104,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-23T21:59:46.000Z","updated_at":"2012-11-23T22:07:28.000Z","published_at":"2012-11-23T22:07:28.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[tic\\npause(1)\\nsuperfast()\\ntoc\\n\\nElapsed time is 0.9876 seconds.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1630,"title":"~~~~~~~ WAVE ~~~~~~~~~","description":"|The WAVE generator|\r\n\r\nOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone. \r\n\r\n|For EXAMPLE|: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\r\n\r\n     1     1     1     1     1     1\r\n     1     2     2     2     2     2\r\n     1     2     3     3     3     3\r\n     1     2     3     4     4     4\r\n     1     2     3     4     5     5\r\n     1     2     3     4     5     6","description_html":"\u003cp\u003e\u003ctt\u003eThe WAVE generator\u003c/tt\u003e\u003c/p\u003e\u003cp\u003eOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone.\u003c/p\u003e\u003cp\u003e\u003ctt\u003eFor EXAMPLE\u003c/tt\u003e: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\u003c/p\u003e\u003cpre\u003e     1     1     1     1     1     1\r\n     1     2     2     2     2     2\r\n     1     2     3     3     3     3\r\n     1     2     3     4     4     4\r\n     1     2     3     4     5     5\r\n     1     2     3     4     5     6\u003c/pre\u003e","function_template":"function waves = WAVE(stone)\r\n  waves = stone;\r\nend","test_suite":"%%\r\nstone = 2;\r\nwaves =[1     1;\r\n        1     2];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 3;\r\nwaves =    [1     1     1;\r\n            1     2     2;\r\n            1     2     3];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 4;\r\nwaves =    [     1     1     1     1;\r\n                 1     2     2     2;\r\n                 1     2     3     3;\r\n                 1     2     3     4;];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 6;\r\nwaves =    [ 1     1     1     1     1     1;\r\n             1     2     2     2     2     2;\r\n             1     2     3     3     3     3;\r\n             1     2     3     4     4     4;\r\n             1     2     3     4     5     5;\r\n             1     2     3     4     5     6];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 10;\r\nwaves =    [   1     1     1     1     1     1     1     1     1     1;\r\n     1     2     2     2     2     2     2     2     2     2;\r\n     1     2     3     3     3     3     3     3     3     3;\r\n     1     2     3     4     4     4     4     4     4     4;\r\n     1     2     3     4     5     5     5     5     5     5;\r\n     1     2     3     4     5     6     6     6     6     6;\r\n     1     2     3     4     5     6     7     7     7     7;\r\n     1     2     3     4     5     6     7     8     8     8;\r\n     1     2     3     4     5     6     7     8     9     9;\r\n     1     2     3     4     5     6     7     8     9    10];\r\nassert(isequal( WAVE(stone),waves))","published":true,"deleted":false,"likes_count":15,"comments_count":2,"created_by":13514,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":348,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-07T09:32:28.000Z","updated_at":"2026-02-06T19:50:10.000Z","published_at":"2013-06-07T09:32:35.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eThe WAVE generator\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eFor EXAMPLE\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[     1     1     1     1     1     1\\n     1     2     2     2     2     2\\n     1     2     3     3     3     3\\n     1     2     3     4     4     4\\n     1     2     3     4     5     5\\n     1     2     3     4     5     6]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42766,"title":"Is my wife really right?","description":"For every input, output the string 'yes' once.\r\nExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\r\nyes1 = 'yes'\r\nyes2 = 'yes'","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 111px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 55.5px; transform-origin: 407px 55.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 139px 8px; transform-origin: 139px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor every input, output the string 'yes' once.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 207px 8px; transform-origin: 207px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 37px 8px; transform-origin: 37px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eyes1 = 'yes'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 37px 8px; transform-origin: 37px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eyes2 = 'yes'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function yes = YesSheIs('?')\r\n  y = 'no';\r\nend","test_suite":"%%\r\nQuestion1 = 'Will you be ready soon?';\r\nQuestion2 = 'What is the meaning of life, universe and everything?';\r\nQuestion3 = 'Do you wan''t to go out today?';\r\nQuestion4 = 'Can you help me?';\r\ny_correct = ['yes', 'yes', 'yes', 'yes'];\r\n[yes1, yes2, yes3, yes4] = YesSheIs(Question1, Question2, Question3, Question4);\r\nassert(strcmp([yes1, yes2, yes3, yes4] ,y_correct))\r\n\r\n\r\n%% \r\nQuestion1 = 'Will you be ready soon?';\r\nQuestion2 = 'What is the meaning of life, universe and everything?';\r\nQuestion3 = 'Do you wan''t to go out today?';\r\nQuestion4 = 'Can you help me?';\r\ny_correct = ['yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes'];\r\n[yes1, yes2, yes3, yes4, yes5, yes6, yes7, yes8, yes9] = YesSheIs(Question1, Question2, Question3, Question4, Question1, Question2, Question3, Question4, Question3);\r\nassert(strcmp([yes1, yes2, yes3, yes4, yes5, yes6, yes7, yes8, yes9] , y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":68531,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":36,"test_suite_updated_at":"2021-09-05T10:31:43.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-03-07T17:01:12.000Z","updated_at":"2025-12-08T18:31:15.000Z","published_at":"2016-03-07T17:01:16.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor every input, output the string 'yes' once.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyes1 = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyes2 = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43061,"title":"Chicken Race","description":"2 chickens, Pete and Fred, compete in a 100 meter race.\r\nPete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second.\r\nHowever, Fred cheats and starts before the starting shot, giving him an N seconds head start.\r\n\r\nWho wins the race? Answer 'Fred' or 'Pete'.","description_html":"\u003cp\u003e2 chickens, Pete and Fred, compete in a 100 meter race.\r\nPete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second.\r\nHowever, Fred cheats and starts before the starting shot, giving him an N seconds head start.\u003c/p\u003e\u003cp\u003eWho wins the race? Answer 'Fred' or 'Pete'.\u003c/p\u003e","function_template":"function winner = chickenRace(vf,vp,N)\r\n  winner = '???';\r\nend","test_suite":"%%%%\r\nvf = 5.5;\r\nvp = 6;\r\nN = 1;\r\nwinner = 'Pete';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n%%\r\nvf = 5.5;\r\nvp = 6;\r\nN = 2;\r\nwinner = 'Fred';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n%%\r\nvf = 6;\r\nvp = 6;\r\nN = 2;\r\nwinner = 'Fred';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":94929,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":67,"test_suite_updated_at":"2016-10-19T11:44:40.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-05T14:26:25.000Z","updated_at":"2025-11-13T16:59:46.000Z","published_at":"2016-10-05T14:26:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second. However, Fred cheats and starts before the starting shot, giving him an N seconds head start.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWho wins the race? Answer 'Fred' or 'Pete'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2002,"title":"Schrödinger dog","description":"Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? \r\n\r\nYES! NOW IT IS!\r\n\r\nYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet. ","description_html":"\u003cp\u003eEveryone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all?\u003c/p\u003e\u003cp\u003eYES! NOW IT IS!\u003c/p\u003e\u003cp\u003eYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet.\u003c/p\u003e","function_template":"function woof = dog\r\n  woof = true;\r\nend","test_suite":"%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = true;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = false;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 42;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = pi;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 'pie';\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = true;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = -1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 'woof';\r\nassert(isequal(dog('what is your name?'),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":25,"test_suite_updated_at":"2013-11-16T23:37:42.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-11-16T23:29:45.000Z","updated_at":"2025-11-13T21:24:08.000Z","published_at":"2013-11-16T23:37:42.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eEveryone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYES! NOW IT IS!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2151,"title":"Reverse within string ","description":"If input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\r\n\r\nIf the length of the string is odd, leave the middle letter unchanged.\r\n\r\nInput 'letter' output 'telret'\r\n\r\nInput 'apple' output 'papel'","description_html":"\u003cp\u003eIf input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\u003c/p\u003e\u003cp\u003eIf the length of the string is odd, leave the middle letter unchanged.\u003c/p\u003e\u003cp\u003eInput 'letter' output 'telret'\u003c/p\u003e\u003cp\u003eInput 'apple' output 'papel'\u003c/p\u003e","function_template":"function y = reverse_within_string(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 'Help';\r\ny_correct = 'eHpl';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'between';\r\ny_correct = 'tebwnee';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'yellow';\r\ny_correct = 'leywol';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'apple';\r\ny_correct = 'papel';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'one, two, three';\r\ny_correct = 'wt ,enooeerht ,';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'red green blue';\r\ny_correct = 'erg dereulb ne';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'a';\r\ny_correct = 'a';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = '1234567890';\r\ny_correct = '5432109876';\r\nassert(isequal(reverse_within_string(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":22585,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":153,"test_suite_updated_at":"2017-09-27T15:43:07.000Z","rescore_all_solutions":false,"group_id":32,"created_at":"2014-02-05T10:25:53.000Z","updated_at":"2026-03-19T20:05:48.000Z","published_at":"2014-02-05T10:27:40.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf the length of the string is odd, leave the middle letter unchanged.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput 'letter' output 'telret'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput 'apple' output 'papel'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1062,"title":"Three grind is shipsstraigt","description":"A function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests. ","description_html":"\u003cp\u003eA function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests.\u003c/p\u003e","function_template":"function y = driemaalisscheepsrecht()\r\n  y = 'Zizzors';\r\nend","test_suite":"%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));\r\n\r\n%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));\r\n\r\n%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":46,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-26T11:32:14.000Z","updated_at":"2025-11-13T18:18:18.000Z","published_at":"2012-11-26T11:39:26.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45172,"title":"Cross (\"+\") flag returns","description":"Given two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\r\nGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of two numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\r\nFor example, [m, n] = [3, 3] would return:\r\n[0,1,0;\r\n1,1,1;\r\n0,1,0];\r\nAnd for even numbers: [p, q] = [4, 3] would return\r\n[0,1,0;\r\n1,1,1;\r\n1,1,1;\r\n0,1,0];","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 317.033px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 158.517px; transform-origin: 407px 158.517px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 383px 8px; transform-origin: 383px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 279.5px 8px; transform-origin: 279.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 12.5px 8px; transform-origin: 12.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 90px 8px; transform-origin: 90px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 127.5px 8px; transform-origin: 127.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor example, [m, n] = [3, 3] would return:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 61.3px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 30.65px; transform-origin: 404px 30.65px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e[0,1,0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e0,1,0];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 155px 8px; transform-origin: 155px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAnd for even numbers: [p, q] = [4, 3] would return\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 81.7333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 40.8667px; transform-origin: 404px 40.8667px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e[0,1,0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e0,1,0];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = crossFlag2(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nm = 2; n = 2;\r\ny_correct = zeros(2,2);\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 3; n = 3;\r\ny_correct = [0, 1, 0; 1, 1, 1; 0, 1, 0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 4; n = 4;\r\ny_correct = [0,1,1,0;\r\n             1,1,1,1;\r\n             1,1,1,1;\r\n             0,1,1,0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 5; n = 3;\r\ny_correct = [0, 1, 0; 0, 1, 0; 1, 1, 1; 0, 1, 0; 0, 1, 0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 3; n = 1;\r\ny_correct = ones(m,n);\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 16; n = 8;\r\ny_correct = [zeros(7,3),ones(7,2),zeros(7,3);ones(2,8);zeros(7,3),ones(7,2),zeros(7,3)];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 7; n = 280;\r\ny_correct = [zeros(3,139), ones(3,2), zeros(3,139); ones(1,280); zeros(3,139), ones(3,2), zeros(3,139)];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 1; n = 1;\r\ny_correct = 1;\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 0; n = 0;\r\ny_correct =[];\r\nassert(isequal(crossFlag2(m, n),y_correct));\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":8,"created_by":157354,"edited_by":223089,"edited_at":"2022-11-25T07:01:15.000Z","deleted_by":null,"deleted_at":null,"solvers_count":18,"test_suite_updated_at":"2022-11-25T07:01:15.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-10-11T20:16:53.000Z","updated_at":"2026-03-11T12:00:48.000Z","published_at":"2019-10-11T20:16:53.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, [m, n] = [3, 3] would return:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[0,1,0;\\n1,1,1;\\n0,1,0];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnd for even numbers: [p, q] = [4, 3] would return\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[0,1,0;\\n1,1,1;\\n1,1,1;\\n0,1,0];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1713,"title":"Can you beat the lottery?","description":"Well this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\r\n\r\n    check = 1;\r\n    while check == 1\r\n        D1 = round(rand(1,1)*5+1);\r\n        D2 = round(rand(1,1)*5+1);\r\n        D3 = round(rand(1,1)*5+1);\r\n        draw = sort([D1 D2 D3]);\r\n        if size(unique(fn), 2) == 3\r\n            check = 0;\r\n        end\r\n    end\r\n\r\nSo \"draw\" is the draw that is made. It is made up of 3 numbers between 1 and 5.  Note that the numbers do not repeat.  SO an example of an input is:\r\n\r\nlottery = [4 3 5];\r\n\r\nNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...) \r\n\r\nGood luck, and please play responsibly...","description_html":"\u003cp\u003eWell this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\u003c/p\u003e\u003cpre\u003e    check = 1;\r\n    while check == 1\r\n        D1 = round(rand(1,1)*5+1);\r\n        D2 = round(rand(1,1)*5+1);\r\n        D3 = round(rand(1,1)*5+1);\r\n        draw = sort([D1 D2 D3]);\r\n        if size(unique(fn), 2) == 3\r\n            check = 0;\r\n        end\r\n    end\u003c/pre\u003e\u003cp\u003eSo \"draw\" is the draw that is made. It is made up of 3 numbers between 1 and 5.  Note that the numbers do not repeat.  SO an example of an input is:\u003c/p\u003e\u003cp\u003elottery = [4 3 5];\u003c/p\u003e\u003cp\u003eNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...)\u003c/p\u003e\u003cp\u003eGood luck, and please play responsibly...\u003c/p\u003e","function_template":"function draw = lottery()\r\n  draw = [x x x];\r\nend","test_suite":"%%\r\ncheck = 1;\r\nwhile check == 1\r\n     D1 = round(rand(1,1)*4+1);\r\n     D2 = round(rand(1,1)*4+1);\r\n     D3 = round(rand(1,1)*4+1);\r\n     draw = sort([D1 D2 D3]);\r\n        if size(unique(draw), 2) == 3\r\n            check = 0;\r\n        end\r\nend\r\nassert(isequal(sort(lottery()),draw))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":2,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":48,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-12T21:15:43.000Z","updated_at":"2025-11-17T20:59:24.000Z","published_at":"2013-07-12T22:07:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    check = 1;\\n    while check == 1\\n        D1 = round(rand(1,1)*5+1);\\n        D2 = round(rand(1,1)*5+1);\\n        D3 = round(rand(1,1)*5+1);\\n        draw = sort([D1 D2 D3]);\\n        if size(unique(fn), 2) == 3\\n            check = 0;\\n        end\\n    end]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo \\\"draw\\\" is the draw that is made. It is made up of 3 numbers between 1 and 5. Note that the numbers do not repeat. SO an example of an input is:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003elottery = [4 3 5];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGood luck, and please play responsibly...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2459,"title":"grazing cows","description":"Here is a fun problem I encountered in high school.\r\n\r\nTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.","description_html":"\u003cp\u003eHere is a fun problem I encountered in high school.\u003c/p\u003e\u003cp\u003eTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.\u003c/p\u003e","function_template":"function y = graze(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 0.9566\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 2;\r\ny_correct = 3.8264;\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct = 34.4380;\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 9;\r\ny_correct = 77.4855;\r\nassert(isequal(graze(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":39,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-23T11:07:08.000Z","updated_at":"2025-11-17T14:53:52.000Z","published_at":"2014-07-23T11:07:08.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHere is a fun problem I encountered in high school.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1687,"title":"Poker Card Deal!","description":"Anyone want to play a card game?  \r\n\r\nWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards.  Rows are the amount of people in play, columns are the amount of cards dealt to each person.  The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\r\n\r\nThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J.  The suits are s for spades, d for dimonds, h for hearts and c for clubs.  \r\n\r\nSo the final cards look like this:\r\n\r\n'js'\r\n\r\n'J'\r\n\r\n'2h'\r\n\r\n'ad'\r\n\r\n'5c' and so on.\r\n\r\nThis function reads in three variables, these are:\r\n\r\npeople -- This is the amount of people that the cards are being dealt to.\r\n\r\ncardsDelt  -- This is the amount of cards dealt to each person.\r\n\r\nisJokerIn --  This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\r\n\r\nso an example is the following, if the variables are:\r\n\r\n%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\r\n\r\npeople = 5;\r\n\r\ncardsDelt = 5; %note, this is a typical deal for a poker game...\r\n\r\nisJokerIn = 0; \r\n\r\nThe outputs will be:\r\n\r\ndealtDeck = \r\n\r\n    'qh'    'as'    '5s'     '2s'    'jd' \r\n    'ad'    '5d'    '9s'     '7h'    'ah' \r\n    '3c'    '2d'    'ac'     '8c'    'qd' \r\n    'kh'    '5h'    '4c'     '3h'    '10s'\r\n    '6h'    '8h'    '10c'    '4s'    '8d' \r\n\r\n%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\r\n\r\ndeckLeftover = \r\n\r\n    '3s'\r\n    '4h'\r\n    '2c'\r\n    '5c'\r\n    'qs'\r\n    'jh'\r\n    'kd'\r\n    '2h'\r\n    '9c'\r\n    '10h'\r\n    '9h'\r\n    '6d'\r\n    '7c'\r\n    '7s'\r\n    '8s'\r\n    'qc'\r\n    'js'\r\n    '9d'\r\n    '7d'\r\n    'ks'\r\n    '6c'\r\n    '6s'\r\n    '3d'\r\n    '10d'\r\n    'jc'\r\n    '4d'\r\n    'kc'\r\n\r\nWell I hope that everyone has fun with it!  Thank you!\r\n\r\n","description_html":"\u003cp\u003eAnyone want to play a card game?\u003c/p\u003e\u003cp\u003eWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards.  Rows are the amount of people in play, columns are the amount of cards dealt to each person.  The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\u003c/p\u003e\u003cp\u003eThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J.  The suits are s for spades, d for dimonds, h for hearts and c for clubs.\u003c/p\u003e\u003cp\u003eSo the final cards look like this:\u003c/p\u003e\u003cp\u003e'js'\u003c/p\u003e\u003cp\u003e'J'\u003c/p\u003e\u003cp\u003e'2h'\u003c/p\u003e\u003cp\u003e'ad'\u003c/p\u003e\u003cp\u003e'5c' and so on.\u003c/p\u003e\u003cp\u003eThis function reads in three variables, these are:\u003c/p\u003e\u003cp\u003epeople -- This is the amount of people that the cards are being dealt to.\u003c/p\u003e\u003cp\u003ecardsDelt  -- This is the amount of cards dealt to each person.\u003c/p\u003e\u003cp\u003eisJokerIn --  This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\u003c/p\u003e\u003cp\u003eso an example is the following, if the variables are:\u003c/p\u003e\u003cp\u003e%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\u003c/p\u003e\u003cp\u003epeople = 5;\u003c/p\u003e\u003cp\u003ecardsDelt = 5; %note, this is a typical deal for a poker game...\u003c/p\u003e\u003cp\u003eisJokerIn = 0;\u003c/p\u003e\u003cp\u003eThe outputs will be:\u003c/p\u003e\u003cp\u003edealtDeck =\u003c/p\u003e\u003cpre\u003e    'qh'    'as'    '5s'     '2s'    'jd' \r\n    'ad'    '5d'    '9s'     '7h'    'ah' \r\n    '3c'    '2d'    'ac'     '8c'    'qd' \r\n    'kh'    '5h'    '4c'     '3h'    '10s'\r\n    '6h'    '8h'    '10c'    '4s'    '8d' \u003c/pre\u003e\u003cp\u003e%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\u003c/p\u003e\u003cp\u003edeckLeftover =\u003c/p\u003e\u003cpre\u003e    '3s'\r\n    '4h'\r\n    '2c'\r\n    '5c'\r\n    'qs'\r\n    'jh'\r\n    'kd'\r\n    '2h'\r\n    '9c'\r\n    '10h'\r\n    '9h'\r\n    '6d'\r\n    '7c'\r\n    '7s'\r\n    '8s'\r\n    'qc'\r\n    'js'\r\n    '9d'\r\n    '7d'\r\n    'ks'\r\n    '6c'\r\n    '6s'\r\n    '3d'\r\n    '10d'\r\n    'jc'\r\n    '4d'\r\n    'kc'\u003c/pre\u003e\u003cp\u003eWell I hope that everyone has fun with it!  Thank you!\u003c/p\u003e","function_template":"function [dealtDeck, deckLeftover] = Poker_Deal(people,cardsDelt,isJokerIn)\r\ndealtDeck ='this is the dealt deck to players'\r\ndeckLeftover = 'is the left over cards in the deck, after being delt'\r\nend","test_suite":"%%\r\npeople = 5;\r\ncardsDelt = 5;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 25) \u0026 ~issorted(reshape(dealtDeck,25,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-25)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 5;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 15) \u0026 ~issorted(reshape(dealtDeck,15,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-15)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 4;\r\ncardsDelt = 7;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 28) \u0026 ~issorted(reshape(dealtDeck,28,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-28)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 5;\r\ncardsDelt = 6;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 30) \u0026 ~issorted(reshape(dealtDeck,30,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-30)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 4;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 12) \u0026 ~issorted(reshape(dealtDeck,12,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-12)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 3;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac';  'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 9) \u0026 ~issorted(reshape(dealtDeck,9,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-9)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":50,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":15,"created_at":"2013-06-30T01:06:43.000Z","updated_at":"2026-04-02T19:37:49.000Z","published_at":"2013-06-30T01:06:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnyone want to play a card game?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards. Rows are the amount of people in play, columns are the amount of cards dealt to each person. The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J. The suits are s for spades, d for dimonds, h for hearts and c for clubs.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo the final cards look like this:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'js'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'J'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'2h'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'ad'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'5c' and so on.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis function reads in three variables, these are:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003epeople -- This is the amount of people that the cards are being dealt to.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ecardsDelt -- This is the amount of cards dealt to each person.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eisJokerIn -- This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso an example is the following, if the variables are:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003epeople = 5;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ecardsDelt = 5; %note, this is a typical deal for a poker game...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eisJokerIn = 0;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe outputs will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edealtDeck =\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    'qh'    'as'    '5s'     '2s'    'jd' \\n    'ad'    '5d'    '9s'     '7h'    'ah' \\n    '3c'    '2d'    'ac'     '8c'    'qd' \\n    'kh'    '5h'    '4c'     '3h'    '10s'\\n    '6h'    '8h'    '10c'    '4s'    '8d']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edeckLeftover =\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    '3s'\\n    '4h'\\n    '2c'\\n    '5c'\\n    'qs'\\n    'jh'\\n    'kd'\\n    '2h'\\n    '9c'\\n    '10h'\\n    '9h'\\n    '6d'\\n    '7c'\\n    '7s'\\n    '8s'\\n    'qc'\\n    'js'\\n    '9d'\\n    '7d'\\n    'ks'\\n    '6c'\\n    '6s'\\n    '3d'\\n    '10d'\\n    'jc'\\n    '4d'\\n    'kc']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell I hope that everyone has fun with it! Thank you!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1696,"title":"Morse Code Generator! Try it!","description":"  .... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \r\n        .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \r\n  \r\n\r\n\r\n  \r\n\r\n  text = 'Morse code is FUN!'\r\n  Morse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--'\r\n\r\n\r\nJust a note: this uses international style Morse code found in:\r\n\r\nhttp://en.wikipedia.org/wiki/American_Morse_code\r\n","description_html":"\u003cpre class=\"language-matlab\"\u003e.... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \r\n      .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003etext = 'Morse code is FUN!'\r\nMorse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--'\r\n\u003c/pre\u003e\u003cp\u003eJust a note: this uses international style Morse code found in:\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://en.wikipedia.org/wiki/American_Morse_code\"\u003ehttp://en.wikipedia.org/wiki/American_Morse_code\u003c/a\u003e\u003c/p\u003e","function_template":"function Morse_code_out = MorseCodeGenerator(text)\r\n  Morse_code_out = text_in;\r\nend","test_suite":"%%\r\nx = 'Morse code is FUN!';\r\ny_correct = '-- --- .-. ... .     -.-. --- -.. .     .. ...     ..-. ..- -. -.-.--';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = 'Am I 20, (who knows?)';\r\ny_correct = '.- --     ..     ..--- ----- --..--     -.--. .-- .... ---     -.- -. --- .-- ... ..--.. -.--.-';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: or does he...';\r\ny_correct = '- .... .     --.- ..- .. -.-. -.-     -... .-. --- .-- -.     ..-. --- -..-     .--- ..- -- .--. ...     --- ...- . .-.     - .... .     .-.. .- --.. -.--     -.. --- --. ---...     --- .-.     -.. --- . ...     .... . .-.-.- .-.-.- .-.-.-';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = '1234567890';\r\ny_correct = '.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":92,"test_suite_updated_at":"2019-09-16T11:37:52.000Z","rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-05T18:50:09.000Z","updated_at":"2025-12-29T01:11:58.000Z","published_at":"2013-07-09T15:55:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[.... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \\n      .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \\n\\ntext = 'Morse code is FUN!'\\nMorse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJust a note: this uses international style Morse code found in:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://en.wikipedia.org/wiki/American_Morse_code\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ehttp://en.wikipedia.org/wiki/American_Morse_code\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1003,"title":"Make a KITT-scanner on the command line","description":"Did you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with |fprintf(char(8));| (ASCII code 8 is a backspace), and the last character is removed. \r\nThis way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with   \r\n\r\n fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));\r\n\r\nYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. \r\nThe characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example \r\n\r\n kitt(10,'#=~-')\r\n\r\ntells it to show up as\r\n\r\n '#=~-------'\r\n\r\nIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\r\n\r\n '=#--------'\r\n\r\nfollowed by \r\n\r\n '~=#-------'\r\n\r\nand \r\n\r\n '-~=#------'\r\n\r\nand so on.\r\nYou see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S.\r\nThe 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen.\r\nTo check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). \r\nAnd off course, try to avoid just hard-coding the result. ","description_html":"\u003cp\u003eDid you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with \u003ctt\u003efprintf(char(8));\u003c/tt\u003e (ASCII code 8 is a backspace), and the last character is removed. \r\nThis way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with\u003c/p\u003e\u003cpre\u003e fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));\u003c/pre\u003e\u003cp\u003eYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. \r\nThe characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example\u003c/p\u003e\u003cpre\u003e kitt(10,'#=~-')\u003c/pre\u003e\u003cp\u003etells it to show up as\u003c/p\u003e\u003cpre\u003e '#=~-------'\u003c/pre\u003e\u003cp\u003eIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\u003c/p\u003e\u003cpre\u003e '=#--------'\u003c/pre\u003e\u003cp\u003efollowed by\u003c/p\u003e\u003cpre\u003e '~=#-------'\u003c/pre\u003e\u003cp\u003eand\u003c/p\u003e\u003cpre\u003e '-~=#------'\u003c/pre\u003e\u003cp\u003eand so on.\r\nYou see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S.\r\nThe 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen.\r\nTo check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). \r\nAnd off course, try to avoid just hard-coding the result.\u003c/p\u003e","function_template":"function scanner = kitt(l,s)\r\n  scanner = [s repmat(s(end),1,l-length(s))];\r\n  fprintf(scanner);\r\n  pause(2000/l);\r\n  fprintf(repmat([char(8) ' ' char(8)],1,l));\r\nend","test_suite":"%%\r\nl = 5;\r\ns = '#=~-';\r\ny_correct = strvcat({\r\n   '#=~--'\r\n   '=#---'\r\n   '~=#--'\r\n   '-~=#-'\r\n   '--~=#'\r\n   '---#='\r\n   '--#=~'\r\n   '-#=~-'\r\n   '#=~--'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 2;\r\ns = '*';\r\ny_correct = strvcat({\r\n   '**'\r\n   '**'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 5;\r\ns = '@ ';\r\ny_correct = strvcat({\r\n   '@    '\r\n   ' @   '\r\n   '  @  '\r\n   '   @ '\r\n   '    @'\r\n   '   @ '\r\n   '  @  '\r\n   ' @   '\r\n   '@    '\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 6;\r\ns = '@\u003e\u003e*=~ ';\r\ny_correct = strvcat({\r\n   '@\u003e\u003e*=~'\r\n   '\u003e@*=~ '\r\n   '\u003e\u003e@~  '\r\n   '*\u003e\u003e@  '\r\n   '=*\u003e\u003e@ '\r\n   '~=*\u003e\u003e@'\r\n   ' ~=*@\u003e'\r\n   '  ~@\u003e\u003e'\r\n   '  @\u003e\u003e*'\r\n   ' @\u003e\u003e*='\r\n   '@\u003e\u003e*=~'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":"2012-10-30T08:09:52.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-10-19T05:48:39.000Z","updated_at":"2025-11-21T11:17:59.000Z","published_at":"2012-10-19T05:52:44.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDid you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003efprintf(char(8));\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (ASCII code 8 is a backspace), and the last character is removed. This way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. The characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ kitt(10,'#=~-')]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003etells it to show up as\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '#=~-------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '=#--------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efollowed by\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '~=#-------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '-~=#------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand so on. You see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S. The 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen. To check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). And off course, try to avoid just hard-coding the result.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44270,"title":"Assert yourself!  Hack the assert function to pass this test.","description":"Have you ever wanted to test out one of those hacks you have seen which \"games\" the problem by simply overwriting the assert method?  Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from.  Well, this question is for you!  Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\r\n\r\n*Example 1*\r\n\r\n  y = assertYourself(10,1);\r\n  % Test is assert(false);\r\n\r\n*Example 2*\r\n\r\n  [v,y] = assertYourself(rand(10,1), 'blah','eh?');\r\n  % Test is assert(false);\r\n\r\nSee, just not fair.  \r\n\r\nNote: More unfair test cases added.","description_html":"\u003cp\u003eHave you ever wanted to test out one of those hacks you have seen which \"games\" the problem by simply overwriting the assert method?  Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from.  Well, this question is for you!  Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample 1\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = assertYourself(10,1);\r\n% Test is assert(false);\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eExample 2\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[v,y] = assertYourself(rand(10,1), 'blah','eh?');\r\n% Test is assert(false);\r\n\u003c/pre\u003e\u003cp\u003eSee, just not fair.\u003c/p\u003e\u003cp\u003eNote: More unfair test cases added.\u003c/p\u003e","function_template":"function varargout = assertYourself(varargin)\r\n  \r\nend","test_suite":"%%\r\nx = 'Try this one';\r\ny_correct = rand(1);\r\nassert(isequal(assertYourself(x),y_correct))\r\n\r\n%%\r\nclear all;\r\nx = rand(10);\r\ny_correct = rand(1);\r\nassertYourself();\r\nassert(isequal(true,false))\r\n\r\n%%\r\nclear all;\r\nx = rand(10);\r\ny = assertYourself(x,'blah')\r\ny_correct = rand(1);\r\nassert(isequal(y,y_correct))\r\n\r\n%%\r\nclear all;\r\nx = randi(26,10);\r\ny_correct = rand(1);\r\n[v,z]= assertYourself(x,x,x);\r\nz;\r\nmsg = ['That is not even fair!  ',char(randi(26,1,10)+'A')]\r\nassert(isequal(x,y_correct));\r\n\r\n%% \r\nclear all;\r\n[v,z]= assertYourself();\r\nv;\r\nassert(false);","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":130819,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":4,"test_suite_updated_at":"2017-07-30T04:46:03.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-07-28T03:49:16.000Z","updated_at":"2017-08-05T18:56:15.000Z","published_at":"2017-07-28T03:58:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHave you ever wanted to test out one of those hacks you have seen which \\\"games\\\" the problem by simply overwriting the assert method? Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from. Well, this question is for you! Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample 1\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = assertYourself(10,1);\\n% Test is assert(false);]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample 2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[v,y] = assertYourself(rand(10,1), 'blah','eh?');\\n% Test is assert(false);]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee, just not fair.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: More unfair test cases added.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42710,"title":"Cleaner","description":"Write a code _cleaner_ which creates variable/object that can clear current workspace when used.\r\nMissing semicolon (\";\") in line returning that \"thing\" will activate cleaning.\r\nExample:\r\n\r\n   \u003e\u003e x = 1; y = 2; z = 3;\r\n   \u003e\u003e a = cleaner;\r\n   \u003e\u003e b = a;\r\n   \u003e\u003e who\r\n\r\n   Your variables are:\r\n   a  b  x  y  z  \r\n  \r\n   \u003e\u003e b\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   b\r\n   \r\n   \u003e\u003e c = b\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   c\r\n   \r\n   \u003e\u003e z = 7\r\n   \r\n   z = \r\n       7\r\n\r\n   \u003e\u003e cleaner\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   ans\r\n  ","description_html":"\u003cp\u003eWrite a code \u003ci\u003ecleaner\u003c/i\u003e which creates variable/object that can clear current workspace when used.\r\nMissing semicolon (\";\") in line returning that \"thing\" will activate cleaning.\r\nExample:\u003c/p\u003e\u003cpre\u003e   \u0026gt;\u0026gt; x = 1; y = 2; z = 3;\r\n   \u0026gt;\u0026gt; a = cleaner;\r\n   \u0026gt;\u0026gt; b = a;\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   a  b  x  y  z  \u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; b\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   b\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; c = b\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   c\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; z = 7\u003c/pre\u003e\u003cpre\u003e   z = \r\n       7\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; cleaner\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   ans\u003c/pre\u003e","function_template":"function obj = cleaner\r\n  % or classdef?\r\n  clear\r\nend","test_suite":"%%\r\n%{\r\n╔═══════════════════════════════════════════╗\r\n║ Please, play against the given problem,   ║\r\n║ not against weaknesses of the Test Suite. ║\r\n║ There is no 100% efficient method to      ║\r\n║ prevent cheating solutions, so there is   ║\r\n║ no extra protection used. I'd be happy if ║\r\n║ there were no solutions with code hidden  ║\r\n║ in strings only to decrease the \"size\".   ║\r\n║ Little hacks, used in order to complete   ║\r\n║ the task, are allowed, but please don't   ║\r\n║ change the filename. All suggestions are  ║\r\n║ welkome.                                  ║\r\n║ Thanks \u0026 have fun.                   Jan  ║\r\n╚═══════════════════════════════════════════╝\r\n%}\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner\r\n% no \";\" only \"b\" stays alive\r\nassert(numel(who)==1)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner;\r\n% cleaner not activated\r\nassert(numel(who)==3)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nz = 'hello'\r\nb = {cleaner}\r\n% cleaner wrapped in cell, no action\r\nassert(numel(who)==4)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner;\r\nassert(isequal(who,{'b';'x';'y_correct'}))\r\nb\r\nassert(isequal(who,{'b'}))\r\n%%\r\nb1 = cleaner;\r\nb2 = cleaner;\r\nb3 = cleaner;\r\nb4 = cleaner;\r\nassert(isequal(who,{'b1';'b2';'b3';'b4'}))\r\nassert(isequal(b1,b2,b3,b4,cleaner))\r\nb3\r\n% clean other cleaners, only \"b3\" survives here\r\nassert(isequal(who,{'b3'}))\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner\r\nassert(numel(who)==1)\r\nx = 1; \r\ny = 2\r\nassert(numel(who)==3)\r\na = b\r\nassert(isequal(who,{'a'}))\r\n%%\r\n% cleaning other workspace (of created below function in temp.m)\r\n%{\r\nfunction out = temp(in)\r\n  x = 1;\r\n  y = 2;\r\n  assert(numel(who)==3)\r\n  k = in\r\n  out = who;\r\nend\r\n%}\r\nf1 = fopen('temp.m','w');\r\nfprintf(f1,'function out=temp(in)\\n  x=1;\\n  y=2;\\n  assert(numel(who)==3)\\n  k=in\\n  out=who;\\nend');\r\nfclose(f1);\r\nclear;\r\nx = 1;\r\ny = 2;\r\nz = cleaner;\r\na = temp(z)\r\nassert(isequal(who,{'a';'x';'y';'z'}))\r\nassert(isequal(a,{'k'}))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":14358,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":"2016-01-22T12:47:33.000Z","rescore_all_solutions":true,"group_id":1,"created_at":"2016-01-13T11:14:47.000Z","updated_at":"2016-01-22T12:47:33.000Z","published_at":"2016-01-13T11:40:23.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a code\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ecleaner\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e which creates variable/object that can clear current workspace when used. Missing semicolon (\\\";\\\") in line returning that \\\"thing\\\" will activate cleaning. Example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[   \u003e\u003e x = 1; y = 2; z = 3;\\n   \u003e\u003e a = cleaner;\\n   \u003e\u003e b = a;\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   a  b  x  y  z  \\n\\n   \u003e\u003e b\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   b\\n\\n   \u003e\u003e c = b\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   c\\n\\n   \u003e\u003e z = 7\\n\\n   z = \\n       7\\n\\n   \u003e\u003e cleaner\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   ans]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1721,"title":"Backslang, odds are you used it at some point in time...","description":"So backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it.  Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end. \r\n\r\nHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\r\n\r\n  str = 'The sky is falling, the sky is falling, or is it?'\r\n\r\n  output = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?\r\n\r\nUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\r\n\r\nOodgay Ucklay!","description_html":"\u003cp\u003eSo backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it.  Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end.\u003c/p\u003e\u003cp\u003eHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estr = 'The sky is falling, the sky is falling, or is it?'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eoutput = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?\r\n\u003c/pre\u003e\u003cp\u003eUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\u003c/p\u003e\u003cp\u003eOodgay Ucklay!\u003c/p\u003e","function_template":"function output = backslang(str)\r\n  output = str;\r\nend","test_suite":"%%\r\nstr = 'The sky is falling, the sky is falling, or is it?'\r\noutput = 'Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'If Allen is Janes husband and Tom is Jill husband, who is Roys wife?'\r\noutput = 'Fiay Llenaay siay Anesjay usbandhay ndaay Omtay siay Illjay usbandhay, howay siay Oysray ifeway?'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'This is the sentence I will use.'\r\noutput = 'Histay siay hetay entencesay Iay illway seuay.'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'Christopher Columbus sailed the ocean blue!'\r\noutput = 'Hristophercay Olumbuscay ailedsay hetay ceanoay luebay!'\r\nassert(isequal(backslang(str),output))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":81,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-17T16:39:49.000Z","updated_at":"2026-03-09T02:10:26.000Z","published_at":"2013-07-17T16:39:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it. Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[str = 'The sky is falling, the sky is falling, or is it?'\\n\\noutput = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOodgay Ucklay!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":44688,"title":"World Cup 2018 Prediction!","description":"Which team will be the winner?\r\n","description_html":"\u003cp\u003eWhich team will be the winner?\u003c/p\u003e","function_template":"function y = Worldcup2018winner()\r\n  y = \"????\"\r\nend","test_suite":"%%\r\nteams={'Russia','Saudi Arabia', 'Egypt', 'Uruguay', 'Portugal', 'Spain','Morocco','Iran',...\r\n    'France','Australia', 'Peru','Denmark', 'Brazil', 'Switzerland', 'Costa Rica', 'Serbia', ...\r\n    'Germany', 'Mexico', 'Sweden', 'STH Korea', 'Belgium', 'Panama', 'Tunisia', 'England' , ...\r\n    'Argentina','Iceland', 'Croatia', 'Nigeria', 'Poland', 'Senegal', 'Colombia', 'Japan'};\r\nd=false;\r\nfor i=1:numel(teams)\r\n    if strcmp(Worldcup2018winner(),teams{i})\r\n        d=true;\r\n        break;\r\n    end\r\nend\r\nassert(d)","published":true,"deleted":false,"likes_count":1,"comments_count":3,"created_by":218677,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":130,"test_suite_updated_at":"2018-06-15T17:39:57.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-06-15T17:38:14.000Z","updated_at":"2026-04-05T20:47:52.000Z","published_at":"2018-06-15T17:38:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhich team will be the winner?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44493,"title":"The great 82-year-old","description":"Let's answer the question below;\r\n\r\n'I am *x* years old and I have never written programs.\r\nIf I study from now, will I be able to develop programs?'\r\n\r\ninput *x* (years old) \u003e\u003e\u003e output 'Yes' or 'No'","description_html":"\u003cp\u003eLet's answer the question below;\u003c/p\u003e\u003cp\u003e'I am \u003cb\u003ex\u003c/b\u003e years old and I have never written programs.\r\nIf I study from now, will I be able to develop programs?'\u003c/p\u003e\u003cp\u003einput \u003cb\u003ex\u003c/b\u003e (years old) \u0026gt;\u0026gt;\u0026gt; output 'Yes' or 'No'\u003c/p\u003e","function_template":"function Answer = Age(x)\r\n  Answer = 'Yes';\r\nend","test_suite":"%%\r\nx = 20;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))\r\n%%\r\nx = 40;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))\r\n%% Great Ms Masako Wakamiya\r\nx = 82-1;\r\ny_correct = 'Yes';\r\nassert(isequal(Age(x),y_correct))","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":137687,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":152,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-01-08T12:47:36.000Z","updated_at":"2026-02-15T11:10:56.000Z","published_at":"2018-01-08T12:58:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eLet's answer the question below;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'I am\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e years old and I have never written programs. If I study from now, will I be able to develop programs?'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003einput\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (years old) \u0026gt;\u0026gt;\u0026gt; output 'Yes' or 'No'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":60956,"title":"P(girl likes you | she smiled at you)","description":"Compute the probability\r\n\r\n\r\n\r\nGiven the input probabilities\r\n\r\n\r\n\r\n\r\n\r\n\r\n","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 401.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 408px 200.933px; transform-origin: 408px 200.933px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 80.4833px 8px; transform-origin: 80.4833px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eCompute the probability\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjcAAAAoCAYAAAACN9vJAAAV80lEQVR4Xu2dW8i1W1XHt/dKmldKWJQXSlmJlqIYKKUQhVRYaSIfGJZCSKhRIbIRUdEkwgs1IkTsCBViBKkYJEmZkYckL1J2EnqlFnaf88e3/u3/HszTc1rvWu87Hpi837fW88xnjv8cc5znXI96IK9EIBFIBBKBRCARSARuEQKPukW0JCmJQCKQCCQCiUAikAg8kMZNMkEikAhcGwK/VQb8w6X9wrUNPMebCCQC50EgjZvz4JxvSQQSgf0QeEfp6sdKe/Z+XWZPiUAicJsQSOPmOmcTz/V9pX3jOoefo04ENiGQxs0m+PLhRODqEPjVMuI/X6Lz0ri5ujl+4M/KkP+utPde39BzxInALgikcbMLjNlJInA1CPxIGem7S/u10v55ZtRp3MygdDn3YNh8prS3Xc6QuiN5Yfn2e0t7+umuX9lp3N9X+qH9eGk/VNobZxk+vP87y/9/orRvlvaRncaW3RyPwCUbNwjhL5WWUdX1fLDX+l47At7/zNKQt3ldDgKsrQ+V9uIZeT8yblBOryuNv73rn04vzVTJwyjtjd25BDrveUNphADXFmwiHDBkXl7aE06Q/P7ps61LhfDk80v7eevo8eXfUZm06ICmXy/t+0t79K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sgEHfqEVi4dMMGyrVdfBqFI40b34nBgBC+VKpzsXNEu3lUS0NdCBXXpF24yP99z+mv78aYJu4O3UitEsVV7Pig2l2nE8O4D5U28xtIdwiuW0Oqdnmxa6G33f/WEJyEJAKJwCYEdCYVGZLRrqRNL7rph480bm6atnx/IpAIJAKJQCKQCNxBBNK4uYOTniQnAolAIpAIJAK3GYE0bm7z7CZtiUAikAgkAonAHUQgjZs7OOlJciKQCCQCiUAicJsRSOPmNs9u0pYIJAKJQCKQCNxBBNK4uYOTniQnAolAIpAIJAK3GYE0bm7z7CZtiUAikAgkAonAHUTg24H/XZLu2Is/AAAAAElFTkSuQmCC\" width=\"283.5\" height=\"20\" style=\"width: 283.5px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 94.4667px 8px; transform-origin: 94.4667px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eGiven the input probabilities\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data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l5iGNeZfi8Zdc32XEpdUhbNsNmldCTbmQiciICIZFepnfiNc76+NnE5Z1/y2/tCAALOOTW9SMceWoxDRBJ8N1duS+KCkonepIeUPHQpNtjbP78HUM/VBl8vPFcb8ruJwDkR0JLzPaURHgU5Z5vW/nYSl7URzfpAQFGwXpRyD0jBA1g5GJ5dtiVxITxWy3lQiNmXhPR/rWx0lBaJkddVYc0ITW13wMx7+UwicB0QYO6zzX/LXUvnximJy7lH4Pp9XzsE448l7q2nWtZsHWHw/9q7JXEhwSauK/JxkRTtZPCEu9b5FKxVsk59nZXWjCChvD9dSsw9mXk3n0kELgUBlO2rS/lkKeQOyWGJWzAvpT+z7UziMotUPtdCgHwSLmwmqx7kdd04zKO9osZ8j7sxu23dkriQRNc6Nt53KvV2fdB4JfZsceDTXgey1y5tL7vEtmebE4EZBHxXhxLArztpARclB8dzmWYwy2cSgbhTkATbvZMWRm2xTduKuADg3aX47xLxC6MkmPqZFTT4nlJuP8icdjbwTzLf2VVBhn9tm2uKaSKQCFxPBHBm2HqJ4t1i9871RC17dasj4Lt7Wru+rgVGWxGXawFOdiIRSAQSgUQgEUgE9oVAEpd9jUe2JhFIBBKBRCARSAQ6CCRxSfFIBBKBRCARSAQSgYtBIInLxQxVNjQRSAQSgUQgEUgEkrikDCQCiUAikAgkAonAxSCQxOVihiobmggkAolAIpAIJAJJXFIGEoFEIBFIBBKBROBiEPgeJi8QknQM7YAAAAAASUVORK5CYII=\" width=\"279\" height=\"20\" style=\"width: 279px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR0AAAAoCAYAAADDqi7RAAAMZElEQVR4Xu2dW8h22xTHv31PTldcUOyLLcfaTiWKHEok5LA36SvlsEsSW0iSC+SQpJxCX3IuJKVQiOycyjkuUCSukLhn/PrWv/4Nc8411/Os9Tzre9+5avS+37vmmnPMMcf4jzHHHGt9N10Z15DAkMCQwAklcNMJxxpDDQkMCQwJXBmgM5RgSGBI4KQSGKBzUnGPwYYEhgQG6OxHB+4drLwi6J37YWlwMiTQlMCD4u6jgr6wRE4DdJZIa7u2AM7Xg14d9JPthhk9DwmsLoF3R48PCHphb88DdHoltV07AOcHQS/dCHDoH4+0VzCDN+gpQY8IesuBvDLPpwb9M+ib2y3X6LkgAUU6XcAzBzpPiwFeF8TP1vWjuPnVoI8G/eOCL8srY36vCbqlMc//xL27gr4S9JEZefww7n8v6A0ryQ0DZpuGAT8s6L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EQ3gFteS/jks6+sA++9sQYYXgazabhNfsjw505LAae3Bd0SxJy44HPu9NHlxRb3vUHaQsvJoQ9KvrcOGKSzOsovCmSuOHANKbqS7PmN5zXmurQPFIWj2lq0s7S/0f7iSUAg2drS7GHW3bp8CtCRVxufHiirhmqV1i6j34MiDh6Ok4DyK60tzXEjrPO0ovZSzuj/RjgF6CgBWwsPYZhE4Y1WKLjOcl3vhbD0WtCaFb9r8jf6Or0E9PpJLRdzeo7qIy7S361Bx+t9akfl7OfZe+75fys4xQLnE5xTjDnG2I8EiHRvDcIeOHXj/0L7VFDOSe2H4+ucLNbbrUGnVAPgQlPWvafScW/C3oIfFO8yR3xbyPRG6dOr3ZVg3zvgkPAnsFhUu7Ul6Hg2nYVHkJ+eNIAiJ04DlBVf8g7SjaJEg88hgSUSUL1MzynRkn5313ZL0NndZAdDQwJDAueXwACd86/B4GBI4FJJYIDOpVruMdkhgfNLYIDO+ddgcDAkcKkkMEDnUi33mOyQwPklMEDn/GswOBgSuFQSGKBzqZZ7THZI4PwS+B/IiJ1Wu1JXsQAAAABJRU5ErkJggg==\" width=\"142.5\" height=\"20\" style=\"width: 142.5px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cul style=\"block-size: 21.7167px; counter-reset: list-item 0; font-family: Helvetica, Arial, sans-serif; list-style-type: square; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 392px 10.8583px; transform-origin: 392px 10.8583px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"counter-reset: none; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 364px 10.8583px; text-align: left; transform-origin: 364px 10.8583px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcAAAAAoCAYAAABpRSooAAASbElEQVR4Xu2dW8h26RjHZ87J7mgcIByY7LObiAPZlEjIZob01ciuJE00JH05GLJJmjKI+hJjF9JI2YSIGGQfB+gjcWQX59y/Wv/6d3Xv1rPWep9nve/91N37ft+z1r2u+39d97W/13vtNeMzEBgIDAQGAgOBC4jAtRdwzWPJA4GBwEBgIDAQuGYYwCEEA4GBwEBgIHAhERgG8EKyfSx6IDAQGAgMBIYBPL4MPCGR8OA0Pnt8UgYFA4GBwEBglwg8JFH9+Ll6dBjA4/Ia43d7Gs9J4x/HJWU8fSAwEBgI7BqB9yTqH5jGS3tXMQxgL1LrX4fx+0QaT9nI+N03zYtX9OP1SR8zXhAEnpXWSXbisdN6X3NB1j2WedoIKGv2uETm09K4wchVJq3LCLYMIBvgljT4Wfv8KH355TQ+spEyPwV2sLbnpXFdhZi/pe++l8bH0/h65TqM05/SeFHjujnrxtihoB6dxiMnOuGLC8ec+Y517WvTg9+bxlfT6BLiYxF6Dp6Lx/zmND4XsJYsvcLk/aOTfO1p2T9MxD4pjdel8eE9ET5oLSKAzGL04Cuf36Vxfbgavl/p4XnLAGpelP+rp3/8N/2U4kaR3zptIl37xPTL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xvlI622O21x3UNmgcCJQRQzHSN0/RGN7feAkMn8NU0et6fOtDdCIGtDOBG5I5pBwIDgYHAQGAgsA4CwwCug+OYZSAwEBgIDAR2hsAwgDtj2CB3IDAQGAgMBNZBYBjAdXAcswwEBgIDgYHAzhAYBnBnDBvkDgQGAgOBgcA6CAwDuA6OY5aBwEBgIDAQ2BkCwwDujGGD3IHAQGAgMBBYB4H/AyQYDIOKAuzsAAAAAElFTkSuQmCC\" width=\"224\" height=\"20\" style=\"width: 224px; height: 20px;\"\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ul\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 8px; transform-origin: 0px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function P_LS = verify_bayes_theorem(P_SL, P_L, P_S)\r\n  P_LS = P_SL;\r\nend","test_suite":"%%\r\nP_SL = 0.99;\r\nP_L  = 1/3;\r\nP_S  = 0.5;\r\nP_LS_correct = 0.66;\r\nP_LS = verify_bayes_theorem(P_SL,P_L,P_S);\r\nassert(abs(P_LS_correct-P_LS) \u003c eps)\r\n\r\n%%\r\nP_SL = 0.75;\r\nP_L  = 1/5;\r\nP_S  = 0.25;\r\nP_LS_correct = 0.6;\r\nP_LS = verify_bayes_theorem(P_SL,P_L,P_S);\r\nassert(abs(P_LS_correct-P_LS) \u003c eps)\r\n\r\n%% Test forbidden functions\r\nfiletext = fileread('verify_bayes_theorem.m');\r\nillegal = contains(filetext, 'regexp') || contains(filetext, 'str2num') || contains(filetext, 'assignin') || contains(filetext, 'echo')\r\nassert(~illegal);","published":true,"deleted":false,"likes_count":2,"comments_count":2,"created_by":149128,"edited_by":149128,"edited_at":"2025-07-10T07:02:07.000Z","deleted_by":null,"deleted_at":null,"solvers_count":43,"test_suite_updated_at":"2025-07-10T07:02:07.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2025-07-08T12:54:24.000Z","updated_at":"2026-03-27T11:28:52.000Z","published_at":"2025-07-08T13:17:57.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompute the probability\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_{LS} = P(girl ~likes ~ you ~ | ~ she ~ smiled ~ at ~ you) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eGiven the input probabilities\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_{SL} = P(she ~ smiles ~ at ~ you ~ | ~ she ~ likes ~ you)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_L = P(she ~likes ~ you) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eP_S = P(she ~ just ~ smiles ~ in ~ general) \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43747,"title":"Find the distance traveled by a car given velocity and time.","description":"A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.","description_html":"\u003cp\u003eA car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.\u003c/p\u003e","function_template":"function y = distance(velocity,time)\r\n  D = time;\r\nend","test_suite":"%%\r\nvelocity = 10;\r\ntime = 60; \r\nD_correct = 600;\r\nassert(isequal(distance(velocity,time),D_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":100857,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":130,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-12-07T20:05:40.000Z","updated_at":"2026-02-10T21:28:41.000Z","published_at":"2016-12-07T20:05:40.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and time, to find the distance traveled.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44413,"title":"determine amount cookies left","description":"started with 3 cookies and you never ate any how many are left","description_html":"\u003cp\u003estarted with 3 cookies and you never ate any how many are left\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":157993,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":132,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-11-24T06:51:36.000Z","updated_at":"2026-02-18T21:56:43.000Z","published_at":"2017-11-24T06:51:36.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003estarted with 3 cookies and you never ate any how many are left\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43557,"title":"Find hen's weight. ","description":"If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.","description_html":"\u003cp\u003eIf hen weights x kilos on two legs, how much does it weights on one leg? Output the result.\u003c/p\u003e","function_template":"function y = Hen(x)\r\n  y = x-x+2*x+x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1;\r\nassert(isequal(Hen(x),y_correct))\r\n%%\r\nx = 2;\r\ny_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1+1;\r\nassert(isequal(Hen(x),y_correct))","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":138,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-15T10:07:55.000Z","updated_at":"2026-03-09T20:47:23.000Z","published_at":"2016-10-15T10:07:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf hen weights x kilos on two legs, how much does it weights on one leg? Output the result.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":48015,"title":"Calculate the volume of the football","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 63.9631px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 31.9744px; transform-origin: 406.996px 31.9815px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 20.9091px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 10.4545px; text-align: left; transform-origin: 383.999px 10.4545px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eCalculate the volume of a football given the ball radius r, using the formula below:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 34.0625px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 17.0312px; text-align: left; transform-origin: 383.999px 17.0312px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"vertical-align:-15px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAABECAYAAAAhtL9RAAALwklEQVR4Xu2dBawtSRGGvwWCExyCQ7KLW3B3lg0Q3N0luLs7u7i7u0OCE4JLcELw4O7ukm+p2vQdzrkz55yZc2bmdScvb9+90z091f9U//VX9exB1FYtMGELHDThudepVwtQAVxBMGkLVABPevnq5CuAKwYmbYEK4EkvX518BXDFwKQtUAE86eXrNPlTAs8DfgrcA/hLp14TuagCeCILteY0jwHcH3hUgLgCeE1D1m67scDVgVcAJ6gA3s0C1Luub4GzAY8DjgUcVgG8viFrz+1b4HjAE4CPAocAj6wA3v4i1DuuZwHjmhsD5wUeBNx3YgB2/pcC7g5cHvg18ErgyfHfe6xSg7j1QDLmXhcA7gfcJZSHh0wMwFcEbgocEYC9bagnTwUeAfyrNH4F8JihuPrclMyeBjwH+FB0nxKATxwv3tOB38b8/dmLgOPGzvKrCuDVgTGFHkpm94qJPgn45wQBfBLA5/h5YfDjAE+JYPTOwJ8qgKcAx9XneChwK+COwG+K7lPywIue+rTAC0NRyV3lqOsqhVgdKGPsodLwTOA+wJcaE5wygNWvVVN8phc0+a/PuQzARn+3B65bGMNo8A3A+4G3NAY7OnDtIN9XjT7fAyTepjFnlb4cGYJTMvs48BrgPzMAsLThGhG8XTCe57GAfzpTiFMBLweuEAPIr+QiTQOV9jKIeBVwIeA6wHtHtthzm05KZhcNuWzP4k6QAzfXx5fzcpEKP084yTd35cB6VXPoD4gOdwhvuh8IBO5bgVeHBvm3uSFmZM9z0nAYJwR+v2RuZwDOArgjfhP4N/Bp4DHAX0f2PMumI79/Y3Bhazv+nhe2ceCbAS+Li9Xg/LPMA5uy1Ch67OsDX5+IcaY8zQTwlVZ8CGndlA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KNi9lxGwHl5pSC8vuAWlNRpucQrpvgzSBD1/8ua0ndKe9GO//p4lG3vzmQ1kfbGVLqVRxgDSKmODLoH32J9xz/yGArAe1w9sCEI1XSNVNVZrKjxin/LaV6JwWS1YziQQy7rPBLrn6/IMV4LNoEAvqqjukX8DTYV1g8V/BF+Xt+d4SU/kxyV9SIO09R/7wp4v1CGVHssTpW7W4KrFugv6MvtizyoFPxSA2xZbMPoRjl7z4m03nfHvpUnueAa2Btr5HY58KY0nlB/9zodOYzZtFwDO7IxGVw0wg1Pb+hYwntAhfCF2uyZNyIDXr/c0DySsf9eR9NwFgFetJR2JqUY7DY90mdbV+y6qCizT22bNUjoc7QOtMrFtA1hjG9jJzaxrUG80JSxnrW0YC2QcYUCcKeFh7rSDUbcN4B084gF/y/TO0oxF306btIEqgCe9fK2Td8ezbkXaYCJoGwcPWifV5wUVwH1aczxjmcDxo3gWJqnBW4tgCnh2p8YrgMcDuj5mYiZRZceakawmy3FNapjk+b+PRPdx412NUQG8K8sPe1/X1c98WTrq9+zy439m5cxCeoBgFq0CeBbLuO9DlMXpXpgnKWbx5BXAs1jG1ofIz3/5majBShtbZzHABRXAAxh1hEOWxeXlUa0RTnW1KVUAr2avKV+d30ibVTq5AnjKkOw+9/xAiacjZlXQUwHcHQRTvjI/UOL//Nua6N4+LLJro1QA73oFNr+/x6kMzE4fXzG3gL8svleFsFDfGu3ygObmdx7BCBXAI1iEDafgdzY85SJALVz38wSewPCYu+qDNRCeKvY0jIX/s2oVwNNfTtdQecwDAp50sd7arJunMjxXaB3Etr5ft3VrVgBv3eT1hn1aoAK4T2vWsbZugQrgrZu83rBPC1QA92nNOtbWLVABvHWT1xv2aYEK4D6tWcfaugUqgLdu8nrDPi1QAdynNetYW7fAfwEifqJjO+S6ggAAAABJRU5ErkJggg==\" width=\"88\" height=\"34\" style=\"width: 88px; height: 34px;\"\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = calcVolume(r)\r\n\r\n    y = r;\r\nend","test_suite":"%%\r\nr = 2;\r\ny_correct = 33.5103;\r\nassert(abs(calcVolume(r) - y_correct) \u003c 0.1)\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":808745,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":63,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2020-12-17T14:17:48.000Z","updated_at":"2026-04-05T10:34:30.000Z","published_at":"2020-12-17T14:17:48.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCalculate the volume of a football given the ball radius r, using the formula below:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"true\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003eV_{sphere} = \\\\frac43 \\\\pi r^3\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":304,"title":"Bottles of beer","description":"Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.","description_html":"\u003cp\u003eGiven an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.\u003c/p\u003e","function_template":"function remaining = bottles_of_beer(on_the_wall)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 99;\r\ny_correct = 98;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n\r\n%%\r\nx = 9;\r\ny_correct = 8;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n\r\n%%\r\nx = 1;\r\ny_correct = 0;\r\nassert(isequal(bottles_of_beer(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":21,"comments_count":10,"created_by":1022,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2272,"test_suite_updated_at":"2012-02-10T05:16:43.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-02-10T05:16:43.000Z","updated_at":"2026-02-14T15:41:12.000Z","published_at":"2012-02-10T05:16:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and pass it around.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43143,"title":"Calculate the answer to life the universe and everything","description":"\u003chttps://en.wikipedia.org/wiki/42_(number)\u003e  \r\n\r\n","description_html":"\u003cp\u003e\u003ca href = \"https://en.wikipedia.org/wiki/42_(number)\"\u003ehttps://en.wikipedia.org/wiki/42_(number)\u003c/a\u003e\u003c/p\u003e","function_template":"function y = TheAnswer()\r\n  y = pi;\r\nend","test_suite":"%%\r\ny_correct = 45-3;\r\nassert(isequal(TheAnswer(),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":14644,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":119,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-07T09:17:52.000Z","updated_at":"2026-02-12T18:40:12.000Z","published_at":"2016-10-07T09:17:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"https://en.wikipedia.org/wiki/42_(number)\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://en.wikipedia.org/wiki/42_(number\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e)\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44664,"title":"function to compute root mean square of first nn positive odd integers","description":"Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 84px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 42px; transform-origin: 407px 42px; vertical-align: baseline; \"\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 42px; text-align: left; transform-origin: 384px 42px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 367px 8px; transform-origin: 367px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function orms = odd_rms(nn)\r\n  \r\nend","test_suite":"%%\r\nnn = 3;\r\norms_correct = 3.4156\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)\r\n\r\n%%\r\nnn = 10;\r\norms_correct = 11.5325\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)\r\n\r\n%%\r\nnn = 1;\r\norms_correct = 1\r\nassert(abs(odd_rms(nn)-orms_correct)\u003c0.5)","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":171559,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":58,"test_suite_updated_at":"2021-12-31T17:41:47.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2018-05-29T15:13:46.000Z","updated_at":"2026-02-17T08:34:38.000Z","published_at":"2018-05-29T15:13:46.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive odd integers, where nn is a positive integer and is the only input argument. For example, if nn is 3, your function needs to compute and return the square root of the average of the numbers 1, 9, and 25. You may use built-in functions including, for example, sum and sqrt, except for the built-in function rms, which is not allowed.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":42632,"title":"Your favourite city!","description":"Type your favourite city.","description_html":"\u003cp\u003eType your favourite city.\u003c/p\u003e","function_template":"function y = favoriteCity()\r\n  y = '';\r\nend","test_suite":"%%\r\nassert(ischar(favoriteCity()))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":0,"created_by":8703,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":316,"test_suite_updated_at":"2015-09-23T05:22:46.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-09-23T05:19:30.000Z","updated_at":"2026-02-12T19:05:00.000Z","published_at":"2015-09-23T05:19:30.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eType your favourite city.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":748,"title":"Wrapping the Tower of Pisa","description":"The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\r\n\r\nNote: inspired on problem 167","description_html":"\u003cp\u003eThe famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\u003c/p\u003e\u003cp\u003eNote: inspired on problem 167\u003c/p\u003e","function_template":"function y = paperneed(s,a)\r\n  y = s;\r\nend","test_suite":"%%\r\ns = pi;\r\na = pi^2;\r\ny_correct = 2*pi^4 + pi^3;\r\nassert(abs(paperneed(s,a)-y_correct)\u003c1e-12)\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":5,"created_by":4638,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":302,"test_suite_updated_at":"2012-06-06T20:53:04.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-06-05T11:41:10.000Z","updated_at":"2026-02-18T21:57:01.000Z","published_at":"2012-06-05T11:41:57.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a circular tower with radius s [m] and height a [m] and he decided to neglect the fact that it was leaning. How many square meters of paper should he bring as a minimum? Don't forget the top, although it is not so nice!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: inspired on problem 167\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2053,"title":"Strange Number Algorithms","description":"Three integer numbers will be provided to you. Write a function to \r\n\r\n Step1: Multiply first number by 3.\r\n Step2: Add 6 with the getting result.\r\n Step3: divide it by 3.\r\n Step4: Subtract the first number.\r\n\r\n Step1: Double the second number.\r\n Step2: Add 9 with result.\r\n Step3: Subtract 3 with the result.\r\n Step4: Divide the result by 2.\r\n Step5: Subtract the result with the second number.\r\n\r\n Step1:Add 7 to the third number.\r\n Step2:Multiply the number with 2.\r\n Step3:Subtract 4 from the result.\r\n Step4:Divide the result by 2.\r\n Step5:Subtract the third number from the result.\r\n\r\nReturn a single row matrix with the three answers.\r\n\r\n","description_html":"\u003cp\u003eThree integer numbers will be provided to you. Write a function to\u003c/p\u003e\u003cpre\u003e Step1: Multiply first number by 3.\r\n Step2: Add 6 with the getting result.\r\n Step3: divide it by 3.\r\n Step4: Subtract the first number.\u003c/pre\u003e\u003cpre\u003e Step1: Double the second number.\r\n Step2: Add 9 with result.\r\n Step3: Subtract 3 with the result.\r\n Step4: Divide the result by 2.\r\n Step5: Subtract the result with the second number.\u003c/pre\u003e\u003cpre\u003e Step1:Add 7 to the third number.\r\n Step2:Multiply the number with 2.\r\n Step3:Subtract 4 from the result.\r\n Step4:Divide the result by 2.\r\n Step5:Subtract the third number from the result.\u003c/pre\u003e\u003cp\u003eReturn a single row matrix with the three answers.\u003c/p\u003e","function_template":"function amat = strange(n)\r\n  amat = n(1)-n(1)*3+6/3;\r\nend","test_suite":"%%\r\nn = [1 10 100];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [0 499 999];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [999 666 333];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n%%\r\nn = [7 63 347];\r\na(1)=(((n(1)*3)+6)/3)-n(1);\r\na(2)=(((n(2)*2)+9)-3)/2-n(2);\r\na(3)=(((n(3)+7)*2)-4)/2-n(3);\r\ny_correct = a;\r\nassert(isequal(strange(n),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":17471,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":101,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-12-15T06:55:46.000Z","updated_at":"2026-02-20T14:09:20.000Z","published_at":"2013-12-15T06:56:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThree integer numbers will be provided to you. Write a function to\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ Step1: Multiply first number by 3.\\n Step2: Add 6 with the getting result.\\n Step3: divide it by 3.\\n Step4: Subtract the first number.\\n\\n Step1: Double the second number.\\n Step2: Add 9 with result.\\n Step3: Subtract 3 with the result.\\n Step4: Divide the result by 2.\\n Step5: Subtract the result with the second number.\\n\\n Step1:Add 7 to the third number.\\n Step2:Multiply the number with 2.\\n Step3:Subtract 4 from the result.\\n Step4:Divide the result by 2.\\n Step5:Subtract the third number from the result.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn a single row matrix with the three answers.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44093,"title":"Determinants","description":"Given a square matrix(A), find the determinant(d).\r\n\r\nFor example:\r\n\r\nA = [1,3;4,5]\r\n\r\nd = 1*5-4*3 = -7","description_html":"\u003cp\u003eGiven a square matrix(A), find the determinant(d).\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003eA = [1,3;4,5]\u003c/p\u003e\u003cp\u003ed = 1*5-4*3 = -7\u003c/p\u003e","function_template":"function d = your_fcn_name(A)\r\n  d = A;\r\nend","test_suite":"%%\r\nA = [1,3;4,5];\r\nd_correct = -7;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [6,0,0,5;1,7,2,-5;2,0,0,0;8,3,1,8];\r\nd_correct = 10;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [1,0,4;2,3,2;0,5,-2];\r\nd_correct = 24;\r\nassert(isequal(your_fcn_name(A),d_correct))\r\n\r\n%%\r\nA = [4,0,-7,3,-5;0,0,2,0,0;7,3,-6,4,-8;5,0,5,2,-3;0,0,9,-1,2];\r\nd_correct = 6;\r\nassert(isequal(your_fcn_name(A),d_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":126209,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":72,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-04-13T19:49:36.000Z","updated_at":"2026-03-16T09:24:14.000Z","published_at":"2017-04-13T19:52:06.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a square matrix(A), find the determinant(d).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA = [1,3;4,5]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ed = 1*5-4*3 = -7\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2416,"title":"Let's see how peculiar we can get","description":"The task is to multiply two numbers. But do it in the most peculiar possible way.","description_html":"\u003cp\u003eThe task is to multiply two numbers. But do it in the most peculiar possible way.\u003c/p\u003e","function_template":"function ans = multPec(x,y)\r\n  x*y;\r\nend","test_suite":"%%\r\nassert(isequal(multPec(2,3),6))\r\n\r\nassert(isequal(multPec(2,2),4))\r\n\r\nassert(isequal(multPec(10,-10),-100))\r\n\r\nassert(isequal(multPec(.2,-.3),-.06))\r\n\r\nassert(isequal(multPec(2i,1i),-2))","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":199,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-13T17:25:26.000Z","updated_at":"2026-02-17T14:36:31.000Z","published_at":"2014-07-13T17:26:22.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe task is to multiply two numbers. But do it in the most peculiar possible way.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1667,"title":"What number has this problem?","description":"This problem is added because it is problem number *???* in the \"Community\" problems section.\r\n\r\n\u003chttp://www.mathworks.de/matlabcentral/cody/?sort=\u0026term=group%3ACommunity A lots of problems here!\u003e\r\n\r\n\r\nThank you, Community!\r\n\r\nand... \r\n\r\nThank you Matlab!!","description_html":"\u003cp\u003eThis problem is added because it is problem number \u003cb\u003e???\u003c/b\u003e in the \"Community\" problems section.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://www.mathworks.de/matlabcentral/cody/?sort=\u0026term=group%3ACommunity\"\u003eA lots of problems here!\u003c/a\u003e\u003c/p\u003e\u003cp\u003eThank you, Community!\u003c/p\u003e\u003cp\u003eand...\u003c/p\u003e\u003cp\u003eThank you Matlab!!\u003c/p\u003e","function_template":"function nr = celebrating_Problem()\r\n  nr = ???;\r\nend","test_suite":"%%\r\nweCelebrateProblemNumber = 1000;\r\nassert(isequal(celebrating_Problem(),weCelebrateProblemNumber))\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":2,"created_by":3038,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":404,"test_suite_updated_at":"2013-06-20T22:47:19.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-20T22:38:15.000Z","updated_at":"2026-03-10T15:17:04.000Z","published_at":"2013-06-20T22:47:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis problem is added because it is problem number\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e???\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e in the \\\"Community\\\" problems section.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.de/matlabcentral/cody/?sort=\u0026amp;term=group%3ACommunity\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eA lots of problems here!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThank you, Community!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThank you Matlab!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44444,"title":"Problem 44444 !!!  free beer everyone","description":"just say hallelujah to solve this problem","description_html":"\u003cp\u003ejust say hallelujah to solve this problem\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = 'oups'%%%\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 'hallelujah';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":156466,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":111,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-12-08T13:35:52.000Z","updated_at":"2026-02-20T14:19:26.000Z","published_at":"2017-12-08T13:36:00.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ejust say hallelujah to solve this problem\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1230,"title":"Who is the smartest MATLAB programmer?","description":"Who is the smartest MATLAB programmer?\r\n\r\nExamples:\r\n\r\n  Input x = 'Is it Obama?'\r\n  Output = 'Me!'\r\n\r\n  Input x = 'Who ?'\r\n  Output = 'Me!'\r\n\r\nReturn 'Me!' to all inputs. (Note: this is only a joke!)","description_html":"\u003cp\u003eWho is the smartest MATLAB programmer?\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput x = 'Is it Obama?'\r\nOutput = 'Me!'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eInput x = 'Who ?'\r\nOutput = 'Me!'\r\n\u003c/pre\u003e\u003cp\u003eReturn 'Me!' to all inputs. (Note: this is only a joke!)\u003c/p\u003e","function_template":"function y = smartest(x)\r\n  y = 'Not me!';\r\nend","test_suite":"%%\r\nx = 'I have been using MATLAB for 50 years!';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = 'I developed MATLAB!';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = '';\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n\r\n%%\r\nx = 1;\r\ny_correct = 'Me!';\r\nassert(isequal(smartest(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":6,"comments_count":3,"created_by":10338,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":791,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-30T01:41:14.000Z","updated_at":"2026-03-18T08:03:59.000Z","published_at":"2013-01-30T01:41:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWho is the smartest MATLAB programmer?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input x = 'Is it Obama?'\\nOutput = 'Me!'\\n\\nInput x = 'Who ?'\\nOutput = 'Me!']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn 'Me!' to all inputs. (Note: this is only a joke!)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1681,"title":"Do you like your boss?","description":"Do you like your boss?\r\nAnswer can be any string!\r\n\r\nFor example:\r\n\r\nBoss = 'Do you like your boss?';\r\n\r\nOutput = 'yes'\r\n\r\nor \r\n\r\nBoss = 'Do you like your boss?';\r\n\r\nOutput = 'Sometimes'\r\n\r\nor\r\n\r\nBoss = 'Do you like your boss?'\r\n\r\nOutput = 'No'\r\n\r\nBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\r\n","description_html":"\u003cp\u003eDo you like your boss?\r\nAnswer can be any string!\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?';\u003c/p\u003e\u003cp\u003eOutput = 'yes'\u003c/p\u003e\u003cp\u003eor\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?';\u003c/p\u003e\u003cp\u003eOutput = 'Sometimes'\u003c/p\u003e\u003cp\u003eor\u003c/p\u003e\u003cp\u003eBoss = 'Do you like your boss?'\u003c/p\u003e\u003cp\u003eOutput = 'No'\u003c/p\u003e\u003cp\u003eBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\u003c/p\u003e","function_template":"function Answer = YourBoss(Qustion)\r\n  Answer = 'So whats the answer???';\r\nend","test_suite":"%%\r\nx = 'Do you like your boss?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Does your boss smell funny?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Is your boss a man or a woman?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Is your boss mean or nice?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Do you see your boss often?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'If your boss were an animal, what type of animal would he or she be?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'On a scale from one to ten, where does your boss rank?';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Maybe you are your own boss...';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))\r\n%%\r\nx = 'Maybe your boss is standing behind you, with that glare on his face, tapping his foot with his arms folded...';\r\ny_correct = 'Any String!';\r\nassert(isequal(isstr(YourBoss(x)),isstr(y_correct)))","published":true,"deleted":false,"likes_count":5,"comments_count":2,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":638,"test_suite_updated_at":"2013-06-27T16:47:48.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-27T15:50:45.000Z","updated_at":"2026-02-17T15:53:42.000Z","published_at":"2013-06-27T16:00:56.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDo you like your boss? Answer can be any string!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eor\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'Sometimes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eor\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBoss = 'Do you like your boss?'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput = 'No'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBe creative or vent (in code...) or tell how wonderful he or she is! Enjoy..\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1384,"title":"Who invented zero?","description":"We know the importance zero in computer science, mathematics... but who invented zero?\r\n\r\nClue:\r\n\r\nHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.","description_html":"\u003cp\u003eWe know the importance zero in computer science, mathematics... but who invented zero?\u003c/p\u003e\u003cp\u003eClue:\u003c/p\u003e\u003cp\u003eHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.\u003c/p\u003e","function_template":"function y = zero()\r\n  y = 'zero';\r\nend","test_suite":"%%\r\nassert(isequal(zero(),'Aryabhata'))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":4,"created_by":6975,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":604,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-03-25T09:04:11.000Z","updated_at":"2026-02-17T15:54:16.000Z","published_at":"2013-03-25T09:04:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWe know the importance zero in computer science, mathematics... but who invented zero?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eClue:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHe was the first in the line of great mathematician-astronomers from the classical age of Indian mathematics and Indian astronomy.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":49962,"title":"When the sum of the squares is a cubic...","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 167px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 83.5px; transform-origin: 407px 83.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConsider the following equality:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 65px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 32.5px; text-align: left; transform-origin: 384px 32.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cimg class=\"imageNode\" width=\"314\" height=\"59\" style=\"vertical-align: baseline;width: 314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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0ndyc/Pv/bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKv/AABEIADsBOgMB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XFqPh+zli0gEWUQUqkQOMjapAYcZw2Rmuc+KkEWt+IfBHhEqDFqGq/a7iNR96C2Quyn0BLD+lel0UAeWC/tz+0ldHUHMI03RYbOwt1jLNM00m5pEUAkhQNrEcKBk4xmvU6KKACiiigAooooA5eX4b+FpNTutRSwmtr67keS4urS+nt5ZSxyQzxupK8fdzgdhW1o+iab4f01LDRbKKztVJYRxLjLHqxPUk9yeTV6igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k=\" data-image-state=\"image-loaded\"\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eFor a given value of n (i.e., num in the problem statement), determine the values of a's and b that satisfy the equality above. The answer should be put in a vector where the first \"num\" entries are the values of a's and the last entry is b. There is no unique answer to each of the problems; however, your answer will be checked against the requirement.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = square_cubic(num)\r\n  y = ones(num);\r\nend","test_suite":"%%\r\nnum=1;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=2;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=3;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=4;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=5;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n%%\r\nnum=6;\r\ny=square_cubic(num);\r\naa=0;\r\nfor i=1:length(y)-1\r\n    aa=aa+y(i)^2;\r\nend\r\nassert(isequal(aa,y(end)^3))\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":180632,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":22,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2021-01-23T22:19:52.000Z","updated_at":"2026-03-16T10:09:27.000Z","published_at":"2021-01-23T22:20:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eConsider the following equality:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"59\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"314\\\"/\u003e\u003cw:attr w:name=\\\"verticalAlign\\\" w:val=\\\"baseline\\\"/\u003e\u003cw:attr w:name=\\\"altText\\\" w:val=\\\"\\\"/\u003e\u003cw:attr w:name=\\\"relationshipId\\\" w:val=\\\"rId1\\\"/\u003e\u003c/w:customXmlPr\u003e\u003c/w:customXml\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor a given value of n (i.e., num in the problem statement), determine the values of a's and b that satisfy the equality above. The answer should be put in a vector where the first \\\"num\\\" entries are the values of a's and the last entry is b. There is no unique answer to each of the problems; however, your answer will be checked against the requirement.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"target\":\"/media/image1.jpeg\",\"relationshipId\":\"rId1\"}]},{\"partUri\":\"/media/image1.jpeg\",\"contentType\":\"image/jpeg\",\"content\":\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4RE6RXhpZgAATU0AKgAAAAgABAE7AAIAAAAlAAAISodpAAQAAAABAAAIcJydAAEAAABKAAAQ6OocAAcAAAgMAAAAPgAAAAAc6gAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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MzZDc1MTgyZjFiIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPjx4bXA6Q3JlYXRlRGF0ZT4yMDIxLTAxLTIzVDE3OjE0OjMxLjgzNTwveG1wOkNyZWF0ZURhdGU+PC9yZGY6RGVzY3JpcHRpb24+PHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9InV1aWQ6ZmFmNWJkZDUtYmEzZC0xMWRhLWFkMzEtZDMzZDc1MTgyZjFiIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iPjxkYzpjcmVhdG9yPjxyZGY6U2VxIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+PHJkZjpsaT5LQVNUQU5ZQSBEb2RkeSAtIChOUyZhbXA7TCkgLSBLSU5FQ1RSSUNTPC9yZGY6bGk+PC9yZGY6U2VxPg0KCQkJPC9kYzpjcmVhdG9yPjwvcmRmOkRlc2NyaXB0aW9uPjwvcmRmOlJERj48L3g6eG1wbWV0YT4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0ndyc/Pv/bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKv/AABEIADsBOgMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0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AKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k=\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43740,"title":"Create a New_Word","description":"The output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end. ","description_html":"\u003cp\u003eThe output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end.\u003c/p\u003e","function_template":"function y = New_Word(Old_Word)\r\n  y = Old_Word;\r\nend","test_suite":"%%\r\nOld_Word = 'Welcome';\r\ny_correct = 'meelcoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Pertinacious';\r\ny_correct = 'usertinacioy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Homogenous';\r\ny_correct = 'usomogenoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Homologous';\r\ny_correct = 'usomologoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Extemperaneous';\r\ny_correct = 'usxtemperaneoy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))\r\n%%\r\nOld_Word = 'Deterministic';\r\ny_correct = 'iceterministy';\r\nassert(strcmp(New_Word(Old_Word),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":100857,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":53,"test_suite_updated_at":"2016-12-22T18:10:34.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-12-07T16:56:19.000Z","updated_at":"2026-03-02T15:09:16.000Z","published_at":"2016-12-07T16:56:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe output of the function is a new word created from the word entered into the function. The new word is created by deleting the first letter, taking the last 2 letters and moving them to the front, and adding y to the end.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1437,"title":"Who has power to do everything in this world?","description":"There is only one person who is older than this universe. \r\nHe is Indian version of Chuck Norris.","description_html":"\u003cp\u003eThere is only one person who is older than this universe. \r\nHe is Indian version of Chuck Norris.\u003c/p\u003e","function_template":"function y = your_fcn_name\r\n  y;\r\nend","test_suite":"%%\r\nassert(isequal(your_fcn_name,'Rajnikanth'))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":3,"created_by":10792,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":486,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-04-19T19:24:35.000Z","updated_at":"2026-03-29T03:50:18.000Z","published_at":"2013-04-19T19:24:35.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThere is only one person who is older than this universe. He is Indian version of Chuck Norris.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44524,"title":"Perimeter of a quadrilateral","description":"There are four cars starting at a point.  The first car points north, the second one points east, the third one points south, and the last one points west.  Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west.  After t hours, the position of the cars can be viewed as a quadrilateral from space.  Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.","description_html":"\u003cp\u003eThere are four cars starting at a point.  The first car points north, the second one points east, the third one points south, and the last one points west.  Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west.  After t hours, the position of the cars can be viewed as a quadrilateral from space.  Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.\u003c/p\u003e","function_template":"function p = total_distance(n,e,s,w,t)\r\n  p = sqrt(n*e*s*t);\r\nend","test_suite":"%%\r\nn=10;\r\ne=10;\r\ns=10;\r\nw=10;\r\nt=2;\r\ny_correct=113.1371;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n%%\r\nn=15;\r\ne=7;\r\ns=3;\r\nw=15;\r\nt=1.5;\r\ny_correct=91.0185;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n%%\r\nn=11;\r\ne=21;\r\ns=31;\r\nw=41;\r\nt=1.7;\r\ny_correct=263.5003;\r\nassert(abs(total_distance(n,e,s,w,t)-y_correct)\u003c1e-4)\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":180632,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":59,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-02-16T18:58:53.000Z","updated_at":"2026-02-18T15:09:46.000Z","published_at":"2018-02-16T18:58:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThere are four cars starting at a point. The first car points north, the second one points east, the third one points south, and the last one points west. Each car moves in its respective direction at a particular speed: n km/h to the north, e km/h to the east, s km/h to the south, and w km/h to the west. After t hours, the position of the cars can be viewed as a quadrilateral from space. Determine the perimeter of this quadrilateral given the values of n, e, s, w, and t.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1188,"title":"The Answer to Life, the Universe, and Everything","description":"A variation of a previous Hitchhiker's Guide to the Galaxy problem.\r\n\r\n*Inputs:* Life, the Universe, and Everything\r\n\r\n*Output:* The Answer","description_html":"\u003cp\u003eA variation of a previous Hitchhiker's Guide to the Galaxy problem.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInputs:\u003c/b\u003e Life, the Universe, and Everything\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e The Answer\u003c/p\u003e","function_template":"function answer = answer_to(life,universe,everything)\r\n  answer = [];\r\nend","test_suite":"%%\r\nanswer = 42;\r\nassert(isequal(answer_to('life'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('universe'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('everything'),answer))\r\n\r\n%%\r\nanswer = 42;\r\nassert(isequal(answer_to('life','universe','everything'),answer))","published":true,"deleted":false,"likes_count":5,"comments_count":4,"created_by":1057,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":578,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-08T12:59:24.000Z","updated_at":"2026-03-13T22:22:07.000Z","published_at":"2013-01-08T12:59:46.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA variation of a previous Hitchhiker's Guide to the Galaxy problem.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInputs:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Life, the Universe, and Everything\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The Answer\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":167,"title":"Pizza!","description":"Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.]\r\nNon-scored bonus question: Why is the function interesting?","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 51px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 25.5px; transform-origin: 407px 25.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 102.5px 8px; transform-origin: 102.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a circular pizza with radius\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 3.5px 8px; transform-origin: 3.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ez\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 45.5px 8px; transform-origin: 45.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and thickness\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4px 8px; transform-origin: 4px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ea\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 88px 8px; transform-origin: 88px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, return the pizza's volume. [\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 3.5px 8px; transform-origin: 3.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003ez\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 74px 8px; transform-origin: 74px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e is first input argument.]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 190px 8px; transform-origin: 190px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eNon-scored bonus question: Why is the function interesting?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = pizza(z,a)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('pizza.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp') || ...\r\n          contains(filetext, 'if') || contains(filetext, 'switch'); \r\nassert(~illegal)\r\n\r\n%%\r\nz = 1;\r\na = 1;\r\nv_correct = pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 2;\r\na = 1;\r\nv_correct = 4*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 1;\r\na = 2;\r\nv_correct = 2*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n\r\n%%\r\nz = 2;\r\na = 2;\r\nv_correct = 8*pi;\r\nassert(isequal(pizza(z,a),v_correct))\r\n","published":true,"deleted":false,"likes_count":372,"comments_count":313,"created_by":39,"edited_by":223089,"edited_at":"2022-12-19T07:41:42.000Z","deleted_by":null,"deleted_at":null,"solvers_count":23782,"test_suite_updated_at":"2022-12-19T07:41:42.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-29T16:17:01.000Z","updated_at":"2026-04-06T18:54:57.000Z","published_at":"2012-01-29T16:21:23.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a circular pizza with radius\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ez\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e and thickness\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ea\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, return the pizza's volume. [\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ez\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e is first input argument.]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNon-scored bonus question: Why is the function interesting?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":157,"title":"The Hitchhiker's Guide to MATLAB","description":"Output logical \"true\" if the input is the answer to life, the universe and everything. Otherwise, output logical \"false\".","description_html":"\u003cp\u003eOutput logical \"true\" if the input is the answer to life, the universe and everything. Otherwise, output logical \"false\".\u003c/p\u003e","function_template":"function y = zaphod(x)\r\n  y = false\r\nend","test_suite":"%%\r\nx = 41;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 42;\r\ny_correct = true;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 43;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 44;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 45;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 46;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))%%\r\nx = 47;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 48;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 49;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))\r\n%%\r\nx = 50;\r\ny_correct = false;\r\nassert(isequal(zaphod(x),y_correct))","published":true,"deleted":false,"likes_count":54,"comments_count":18,"created_by":39,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3408,"test_suite_updated_at":"2012-01-29T03:52:07.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-29T03:52:07.000Z","updated_at":"2026-03-26T05:13:23.000Z","published_at":"2012-01-29T03:53:05.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput logical \\\"true\\\" if the input is the answer to life, the universe and everything. Otherwise, output logical \\\"false\\\".\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":149,"title":"Is my wife right?","description":"Regardless of input, output the string 'yes'.","description_html":"\u003cp\u003eRegardless of input, output the string 'yes'.\u003c/p\u003e","function_template":"function out = wiferight(in)\r\n  out='no';\r\nend","test_suite":"%%\r\nx = 'But I''m actually right this time';\r\ny_correct = 'yes';\r\nassert(isequal(wiferight(x),y_correct))\r\n\r\n%%\r\nx = 'But you just said that 2+2=3';\r\ny_correct = 'yes';\r\nassert(isequal(wiferight(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":294,"comments_count":71,"created_by":39,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":17425,"test_suite_updated_at":"2012-01-29T04:12:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-01-28T17:50:24.000Z","updated_at":"2026-03-29T20:41:47.000Z","published_at":"2012-01-29T04:12:44.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRegardless of input, output the string 'yes'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44060,"title":"Volume Pillar","description":"Calculate the volume of a pillar with radius l and heigth ar.","description_html":"\u003cp\u003eCalculate the volume of a pillar with radius l and heigth ar.\u003c/p\u003e","function_template":"function y = Pillar_Size(l,ar)\r\n  y = x;\r\nend","test_suite":"%%\r\nl = 1;\r\nar = 2;\r\ny_correct = pi*2;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))\r\n\r\n%%\r\nl = 12;\r\nar = 25;\r\ny_correct = pi*3600;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))\r\n\r\n%%\r\nl = 6;\r\nar = 2;\r\ny_correct = pi*72;\r\nassert(isequal(Pillar_Size(l,ar),y_correct))","published":true,"deleted":false,"likes_count":15,"comments_count":1,"created_by":99516,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2096,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-06T15:36:59.000Z","updated_at":"2026-04-06T09:10:01.000Z","published_at":"2017-02-06T15:36:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCalculate the volume of a pillar with radius l and heigth ar.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43571,"title":"How many hours are there in a day in Italy?","description":"Remember \"European Summer Time\"","description_html":"\u003cp\u003eRemember \"European Summer Time\"\u003c/p\u003e","function_template":"function HH = your_fcn_name(y,m,d)\r\n  HH = [y,m,d];\r\nend","test_suite":"%%\r\ny = 2016;\r\nm = 1;\r\nd = 1;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n%%\r\ny = 2016;\r\nm = 12;\r\nd = 31;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n%%\r\ny = 1965;\r\nm = 12;\r\nd = 7;\r\ny_correct = 24;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n\r\n\r\n%%\r\ny = 2016;\r\nm = 10;\r\nd = 30;\r\ny_correct = 25;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n\r\n\r\n\r\n\r\n%%\r\ny = 2016;\r\nm = 3;\r\nd = 27;\r\ny_correct = 23;\r\nassert(isequal(your_fcn_name(y,m,d),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":14644,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":40,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-17T14:33:18.000Z","updated_at":"2026-03-06T12:05:55.000Z","published_at":"2016-10-17T14:36:36.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRemember \\\"European Summer Time\\\"\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1561,"title":"Reverse CHECKBOX MATRIX with 69","description":"Create a reverse checkbox matrix with '69'.   \r\nWhere the size is the input and output will be a square checkbox matrix. \r\n\r\nExample\r\n\r\nIf input is 4 then output will be \r\n\r\n    [ 0    69     0    69 \r\n     69     0    69     0 \r\n      0    69     0    69 \r\n     69     0    69     0]\r\n","description_html":"\u003cp\u003eCreate a reverse checkbox matrix with '69'.   \r\nWhere the size is the input and output will be a square checkbox matrix.\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003eIf input is 4 then output will be\u003c/p\u003e\u003cpre\u003e    [ 0    69     0    69 \r\n     69     0    69     0 \r\n      0    69     0    69 \r\n     69     0    69     0]\u003c/pre\u003e","function_template":"function y = ChecK69(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 3;\r\ny_correct = [0 69 0;69 0 69;0 69 0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 4;\r\ny_correct = [0    69     0    69;\r\n            69     0    69     0;\r\n             0    69     0    69;\r\n            69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 5;\r\ny_correct =[0    69     0    69     0;\r\n           69     0    69     0    69;\r\n            0    69     0    69     0;\r\n           69     0    69     0    69;\r\n            0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct =[0    69     0    69     0    69;\r\n           69     0    69     0    69     0;\r\n            0    69     0    69     0    69;\r\n           69     0    69     0    69     0;\r\n            0    69     0    69     0    69;\r\n           69     0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))\r\n\r\n%%\r\nx = 8;\r\ny_correct =[0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0;\r\n            0    69     0    69     0    69     0    69;\r\n           69     0    69     0    69     0    69     0];\r\nassert(isequal(ChecK69(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":13514,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":86,"test_suite_updated_at":"2013-06-06T11:31:41.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-06T11:26:14.000Z","updated_at":"2026-03-05T16:34:45.000Z","published_at":"2013-06-06T11:26:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a reverse checkbox matrix with '69'. Where the size is the input and output will be a square checkbox matrix.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf input is 4 then output will be\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    [ 0    69     0    69 \\n     69     0    69     0 \\n      0    69     0    69 \\n     69     0    69     0]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44441,"title":"Jack's hand in \"Titanic\" ♤","description":"Given a series of cards, return true if it's the famous hand. Note that i pretend that  poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?","description_html":"\u003cp\u003eGiven a series of cards, return true if it's the famous hand. Note that i pretend that  poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('your_fcn_name.m'); \r\nassert(isempty(strfind(filetext, 'regexp')),'regexp() and its family are forbidden') \r\nassert(isempty(strfind(filetext, 'regexprep')),'regexprep() forbidden')\r\n%%\r\nx = [10 3 10 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 8 1 7 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [10 5 10 5 10];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [4 4 6 3 5];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [2 4 2 4 4];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 9 9 9 9];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 7 8 7 8];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [nan 3 10 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [10 'k' 'j' 2 3];\r\ny_correct = false;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 7 8 0 8];\r\ny_correct = false; %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 17 8 17 8] ;\r\ny_correct = false %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [0 7 0 7 0];\r\ny_correct = false; %inexistant card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 3 3 8 3];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [8 .3 .3 8 .3];\r\ny_correct = false;  %invalid card\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = [1 1 1 5 5];\r\ny_correct = true;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":156466,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":27,"test_suite_updated_at":"2017-12-09T11:50:03.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-12-06T14:41:25.000Z","updated_at":"2025-12-07T15:59:23.000Z","published_at":"2017-12-06T14:41:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be careful with the test suite to avoid some traps like (nan, 0.05 , 'string', 55...) are invalid cards right ?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1719,"title":"Dice face matrix!","description":"This is dice simulator, but instead of making a random die number, you will receive an \"pre-rolled\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\r\n\r\n  rollnum = 1;\r\n\r\nThen the output will be:\r\n\r\n  diceFace =\r\n  \r\n       0     0     0\r\n       0     1     0\r\n       0     0     0\r\n\r\nAnother example:\r\n\r\n  rollnum = 5;\r\n\r\nThen the output will be:\r\n\r\n  diceFace =\r\n  \r\n       1     0     1\r\n       0     1     0\r\n       1     0     1\r\nAnd so on for 1-6, well that is it!\r\nJust note the 1 and 0 are numbers not char's or strings...\r\nGood luck!","description_html":"\u003cp\u003eThis is dice simulator, but instead of making a random die number, you will receive an \"pre-rolled\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003erollnum = 1;\r\n\u003c/pre\u003e\u003cp\u003eThen the output will be:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ediceFace =\r\n\u003c/pre\u003e\u003cpre\u003e       0     0     0\r\n       0     1     0\r\n       0     0     0\u003c/pre\u003e\u003cp\u003eAnother example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003erollnum = 5;\r\n\u003c/pre\u003e\u003cp\u003eThen the output will be:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ediceFace =\r\n\u003c/pre\u003e\u003cpre\u003e       1     0     1\r\n       0     1     0\r\n       1     0     1\r\nAnd so on for 1-6, well that is it!\r\nJust note the 1 and 0 are numbers not char's or strings...\r\nGood luck!\u003c/pre\u003e","function_template":"function diceFace = rollADie(rollnum)\r\n  diceFace = rollnum;\r\nend","test_suite":"%%\r\nrollnum = 1;\r\ndiceFace = [0 0 0; 0 1 0; 0 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 2;\r\ndiceFace = [0 0 1; 0 0 0; 1 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 3;\r\ndiceFace = [0 0 1; 0 1 0; 1 0 0];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 4;\r\ndiceFace = [1 0 1; 0 0 0; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 5;\r\ndiceFace = [1 0 1; 0 1 0; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n%%\r\nrollnum = 6;\r\ndiceFace = [1 0 1; 1 0 1; 1 0 1];\r\nassert(isequal(rollADie(rollnum),diceFace))\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":136,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":41,"created_at":"2013-07-16T15:48:23.000Z","updated_at":"2026-04-03T02:36:03.000Z","published_at":"2013-07-16T15:48:30.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is dice simulator, but instead of making a random die number, you will receive an \\\"pre-rolled\\\" number in and spit out a matrix of 1 and 0 that looks like a dice face of the given number. So for example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[rollnum = 1;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThen the output will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[diceFace =\\n\\n       0     0     0\\n       0     1     0\\n       0     0     0]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnother example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[rollnum = 5;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThen the output will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[diceFace =\\n\\n       1     0     1\\n       0     1     0\\n       1     0     1\\nAnd so on for 1-6, well that is it!\\nJust note the 1 and 0 are numbers not char's or strings...\\nGood luck!]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1712,"title":"NO _________ ALLOWED....","description":"So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0.  For example:\r\n\r\n  Sentence = 'The birds in the field are eating bird seed';\r\n  Not_allowed = 'field'\r\n\r\nso the output will be, because field is found in the sentence:\r\n\r\n  Output = 1; \r\n\r\nAnother example:\r\n\r\n  Sentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\n  Not_allowed = 'oven'\r\n\r\nso the output will be, because oven is not found in the sentence:\r\n\r\n  Output = 0; \r\n\r\nThat is it!\r\n\r\nHave Fun!","description_html":"\u003cp\u003eSo you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0.  For example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eSentence = 'The birds in the field are eating bird seed';\r\nNot_allowed = 'field'\r\n\u003c/pre\u003e\u003cp\u003eso the output will be, because field is found in the sentence:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eOutput = 1; \r\n\u003c/pre\u003e\u003cp\u003eAnother example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eSentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\nNot_allowed = 'oven'\r\n\u003c/pre\u003e\u003cp\u003eso the output will be, because oven is not found in the sentence:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eOutput = 0; \r\n\u003c/pre\u003e\u003cp\u003eThat is it!\u003c/p\u003e\u003cp\u003eHave Fun!\u003c/p\u003e","function_template":"function output = NotAllowed(Sentence, Not_allowed)\r\n  output = Not_allowed;\r\n  output = Sentence;\r\nend","test_suite":"%%\r\nSentence = 'The birds in the field are eating bird seed';\r\nNot_allowed = 'field'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'If the sky is blue on earth, what is the sky color on mars?';\r\nNot_allowed = 'oven'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Oh where, oh where has my little dog gone?';\r\nNot_allowed = 'where'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Insanity: doing the same thing over and over again and expecting different results...';\r\nNot_allowed = 'Einstein'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'Wheres the cream filling?';\r\nNot_allowed = 'cream'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'MATLAB is the coolest!';\r\nNot_allowed = 'MATLAB'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'No no, you got it all wrong!';\r\nNot_allowed = 'No'\r\noutput = 1;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))\r\n%%\r\nSentence = 'This planet, with all its appalling immensity, is to electric currents virtually no more than a small metal ball.';\r\nNot_allowed = 'Tesla'\r\noutput = 0;\r\nassert(isequal(NotAllowed(Sentence, Not_allowed),output))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":226,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-12T16:08:38.000Z","updated_at":"2026-02-22T02:23:52.000Z","published_at":"2013-07-12T16:08:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the output is 0. For example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Sentence = 'The birds in the field are eating bird seed';\\nNot_allowed = 'field']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso the output will be, because field is found in the sentence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Output = 1;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnother example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Sentence = 'If the sky is blue on earth, what is the sky color on mars?';\\nNot_allowed = 'oven']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso the output will be, because oven is not found in the sentence:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Output = 0;]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThat is it!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHave Fun!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1052,"title":"Elapsed time is -0.005204 seconds.","description":"Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\r\n\r\n  tic\r\n  pause(1)\r\n  superfast()\r\n  toc\r\n\r\n  Elapsed time is 0.9876 seconds.","description_html":"\u003cp\u003eWrite a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003etic\r\npause(1)\r\nsuperfast()\r\ntoc\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eElapsed time is 0.9876 seconds.\r\n\u003c/pre\u003e","function_template":"function y = superfast(x)\r\n  pause(-1)\r\nend","test_suite":"%%\r\ntic\r\npause(1)\r\nsuperfast()\r\ntimeElapsed = toc;\r\nassert(timeElapsed \u003c 1)\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":450,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":104,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-23T21:59:46.000Z","updated_at":"2012-11-23T22:07:28.000Z","published_at":"2012-11-23T22:07:28.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case pauses for one second. Overall time elapsed for the test case should therefore be less than one second.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[tic\\npause(1)\\nsuperfast()\\ntoc\\n\\nElapsed time is 0.9876 seconds.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1630,"title":"~~~~~~~ WAVE ~~~~~~~~~","description":"|The WAVE generator|\r\n\r\nOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone. \r\n\r\n|For EXAMPLE|: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\r\n\r\n     1     1     1     1     1     1\r\n     1     2     2     2     2     2\r\n     1     2     3     3     3     3\r\n     1     2     3     4     4     4\r\n     1     2     3     4     5     5\r\n     1     2     3     4     5     6","description_html":"\u003cp\u003e\u003ctt\u003eThe WAVE generator\u003c/tt\u003e\u003c/p\u003e\u003cp\u003eOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone.\u003c/p\u003e\u003cp\u003e\u003ctt\u003eFor EXAMPLE\u003c/tt\u003e: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\u003c/p\u003e\u003cpre\u003e     1     1     1     1     1     1\r\n     1     2     2     2     2     2\r\n     1     2     3     3     3     3\r\n     1     2     3     4     4     4\r\n     1     2     3     4     5     5\r\n     1     2     3     4     5     6\u003c/pre\u003e","function_template":"function waves = WAVE(stone)\r\n  waves = stone;\r\nend","test_suite":"%%\r\nstone = 2;\r\nwaves =[1     1;\r\n        1     2];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 3;\r\nwaves =    [1     1     1;\r\n            1     2     2;\r\n            1     2     3];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 4;\r\nwaves =    [     1     1     1     1;\r\n                 1     2     2     2;\r\n                 1     2     3     3;\r\n                 1     2     3     4;];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 6;\r\nwaves =    [ 1     1     1     1     1     1;\r\n             1     2     2     2     2     2;\r\n             1     2     3     3     3     3;\r\n             1     2     3     4     4     4;\r\n             1     2     3     4     5     5;\r\n             1     2     3     4     5     6];\r\nassert(isequal( WAVE(stone),waves))\r\n\r\n%%\r\nstone = 10;\r\nwaves =    [   1     1     1     1     1     1     1     1     1     1;\r\n     1     2     2     2     2     2     2     2     2     2;\r\n     1     2     3     3     3     3     3     3     3     3;\r\n     1     2     3     4     4     4     4     4     4     4;\r\n     1     2     3     4     5     5     5     5     5     5;\r\n     1     2     3     4     5     6     6     6     6     6;\r\n     1     2     3     4     5     6     7     7     7     7;\r\n     1     2     3     4     5     6     7     8     8     8;\r\n     1     2     3     4     5     6     7     8     9     9;\r\n     1     2     3     4     5     6     7     8     9    10];\r\nassert(isequal( WAVE(stone),waves))","published":true,"deleted":false,"likes_count":15,"comments_count":2,"created_by":13514,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":348,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-07T09:32:28.000Z","updated_at":"2026-02-06T19:50:10.000Z","published_at":"2013-06-07T09:32:35.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eThe WAVE generator\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOnce upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that was so still and clear as crystal. He threw a stone into river. Then again he threw another stone of higher weight into the river.He saw there was two different kinds of waves were being generated due to the difference in weight of the stone.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eFor EXAMPLE\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: 'Sum' threw a stone of weight 6. The river generated wave as bellow.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[     1     1     1     1     1     1\\n     1     2     2     2     2     2\\n     1     2     3     3     3     3\\n     1     2     3     4     4     4\\n     1     2     3     4     5     5\\n     1     2     3     4     5     6]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42766,"title":"Is my wife really right?","description":"For every input, output the string 'yes' once.\r\nExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\r\nyes1 = 'yes'\r\nyes2 = 'yes'","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 111px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 55.5px; transform-origin: 407px 55.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 139px 8px; transform-origin: 139px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor every input, output the string 'yes' once.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 207px 8px; transform-origin: 207px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 37px 8px; transform-origin: 37px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eyes1 = 'yes'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 37px 8px; transform-origin: 37px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eyes2 = 'yes'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function yes = YesSheIs('?')\r\n  y = 'no';\r\nend","test_suite":"%%\r\nQuestion1 = 'Will you be ready soon?';\r\nQuestion2 = 'What is the meaning of life, universe and everything?';\r\nQuestion3 = 'Do you wan''t to go out today?';\r\nQuestion4 = 'Can you help me?';\r\ny_correct = ['yes', 'yes', 'yes', 'yes'];\r\n[yes1, yes2, yes3, yes4] = YesSheIs(Question1, Question2, Question3, Question4);\r\nassert(strcmp([yes1, yes2, yes3, yes4] ,y_correct))\r\n\r\n\r\n%% \r\nQuestion1 = 'Will you be ready soon?';\r\nQuestion2 = 'What is the meaning of life, universe and everything?';\r\nQuestion3 = 'Do you wan''t to go out today?';\r\nQuestion4 = 'Can you help me?';\r\ny_correct = ['yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes'];\r\n[yes1, yes2, yes3, yes4, yes5, yes6, yes7, yes8, yes9] = YesSheIs(Question1, Question2, Question3, Question4, Question1, Question2, Question3, Question4, Question3);\r\nassert(strcmp([yes1, yes2, yes3, yes4, yes5, yes6, yes7, yes8, yes9] , y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":68531,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":36,"test_suite_updated_at":"2021-09-05T10:31:43.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-03-07T17:01:12.000Z","updated_at":"2025-12-08T18:31:15.000Z","published_at":"2016-03-07T17:01:16.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor every input, output the string 'yes' once.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?')\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyes1 = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyes2 = 'yes'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43061,"title":"Chicken Race","description":"2 chickens, Pete and Fred, compete in a 100 meter race.\r\nPete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second.\r\nHowever, Fred cheats and starts before the starting shot, giving him an N seconds head start.\r\n\r\nWho wins the race? Answer 'Fred' or 'Pete'.","description_html":"\u003cp\u003e2 chickens, Pete and Fred, compete in a 100 meter race.\r\nPete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second.\r\nHowever, Fred cheats and starts before the starting shot, giving him an N seconds head start.\u003c/p\u003e\u003cp\u003eWho wins the race? Answer 'Fred' or 'Pete'.\u003c/p\u003e","function_template":"function winner = chickenRace(vf,vp,N)\r\n  winner = '???';\r\nend","test_suite":"%%%%\r\nvf = 5.5;\r\nvp = 6;\r\nN = 1;\r\nwinner = 'Pete';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n%%\r\nvf = 5.5;\r\nvp = 6;\r\nN = 2;\r\nwinner = 'Fred';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n%%\r\nvf = 6;\r\nvp = 6;\r\nN = 2;\r\nwinner = 'Fred';\r\nassert(isequal(chickenRace(vf,vp,N),winner))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":94929,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":67,"test_suite_updated_at":"2016-10-19T11:44:40.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-05T14:26:25.000Z","updated_at":"2025-11-13T16:59:46.000Z","published_at":"2016-10-05T14:26:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running at vf meter/second. However, Fred cheats and starts before the starting shot, giving him an N seconds head start.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWho wins the race? Answer 'Fred' or 'Pete'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2002,"title":"Schrödinger dog","description":"Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? \r\n\r\nYES! NOW IT IS!\r\n\r\nYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet. ","description_html":"\u003cp\u003eEveryone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all?\u003c/p\u003e\u003cp\u003eYES! NOW IT IS!\u003c/p\u003e\u003cp\u003eYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet.\u003c/p\u003e","function_template":"function woof = dog\r\n  woof = true;\r\nend","test_suite":"%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = true;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = false;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 42;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = pi;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 'pie';\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = true;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 0;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = -1;\r\nassert(isequal(dog,y_correct))\r\n\r\n%%\r\ny_correct = 'woof';\r\nassert(isequal(dog('what is your name?'),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":1,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":25,"test_suite_updated_at":"2013-11-16T23:37:42.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-11-16T23:29:45.000Z","updated_at":"2025-11-13T21:24:08.000Z","published_at":"2013-11-16T23:37:42.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eEveryone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYES! NOW IT IS!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou are going to write a function that resembles the box with Schrödinger's dog inside, and I am going to test if it is indeed his canid pet.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2151,"title":"Reverse within string ","description":"If input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\r\n\r\nIf the length of the string is odd, leave the middle letter unchanged.\r\n\r\nInput 'letter' output 'telret'\r\n\r\nInput 'apple' output 'papel'","description_html":"\u003cp\u003eIf input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\u003c/p\u003e\u003cp\u003eIf the length of the string is odd, leave the middle letter unchanged.\u003c/p\u003e\u003cp\u003eInput 'letter' output 'telret'\u003c/p\u003e\u003cp\u003eInput 'apple' output 'papel'\u003c/p\u003e","function_template":"function y = reverse_within_string(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 'Help';\r\ny_correct = 'eHpl';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'between';\r\ny_correct = 'tebwnee';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'yellow';\r\ny_correct = 'leywol';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'apple';\r\ny_correct = 'papel';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'one, two, three';\r\ny_correct = 'wt ,enooeerht ,';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'red green blue';\r\ny_correct = 'erg dereulb ne';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = 'a';\r\ny_correct = 'a';\r\nassert(isequal(reverse_within_string(x),y_correct))\r\n\r\n%%\r\nx = '1234567890';\r\ny_correct = '5432109876';\r\nassert(isequal(reverse_within_string(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":22585,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":153,"test_suite_updated_at":"2017-09-27T15:43:07.000Z","rescore_all_solutions":false,"group_id":32,"created_at":"2014-02-05T10:25:53.000Z","updated_at":"2026-03-19T20:05:48.000Z","published_at":"2014-02-05T10:27:40.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf input is a string 'yellow' the output should be 'leywol'. Locate the middle of the string and reverse the first (yel) and second (low)parts of the string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf the length of the string is odd, leave the middle letter unchanged.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput 'letter' output 'telret'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput 'apple' output 'papel'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1062,"title":"Three grind is shipsstraigt","description":"A function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests. ","description_html":"\u003cp\u003eA function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests.\u003c/p\u003e","function_template":"function y = driemaalisscheepsrecht()\r\n  y = 'Zizzors';\r\nend","test_suite":"%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));\r\n\r\n%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));\r\n\r\n%%\r\ny_correct = getfield({'rock' 'scissors' 'paper'},{ceil(rand(1)*3)});\r\nassert(isequal(lower(driemaalisscheepsrecht()),y_correct));","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":46,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-26T11:32:14.000Z","updated_at":"2025-11-13T18:18:18.000Z","published_at":"2012-11-26T11:39:26.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA function that returns either 'Rock', 'Scissors', or 'Paper' (string). You may succeed or you may fail the (case insensitive) tests.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45172,"title":"Cross (\"+\") flag returns","description":"Given two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\r\nGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of two numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\r\nFor example, [m, n] = [3, 3] would return:\r\n[0,1,0;\r\n1,1,1;\r\n0,1,0];\r\nAnd for even numbers: [p, q] = [4, 3] would return\r\n[0,1,0;\r\n1,1,1;\r\n1,1,1;\r\n0,1,0];","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 317.033px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 158.517px; transform-origin: 407px 158.517px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 383px 8px; transform-origin: 383px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 279.5px 8px; transform-origin: 279.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 12.5px 8px; transform-origin: 12.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 90px 8px; transform-origin: 90px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 127.5px 8px; transform-origin: 127.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor example, [m, n] = [3, 3] would return:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 61.3px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 30.65px; transform-origin: 404px 30.65px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e[0,1,0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e0,1,0];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 155px 8px; transform-origin: 155px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAnd for even numbers: [p, q] = [4, 3] would return\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 81.7333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 40.8667px; transform-origin: 404px 40.8667px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e[0,1,0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e1,1,1;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 28px 8.5px; tab-size: 4; transform-origin: 28px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e0,1,0];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = crossFlag2(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nm = 2; n = 2;\r\ny_correct = zeros(2,2);\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 3; n = 3;\r\ny_correct = [0, 1, 0; 1, 1, 1; 0, 1, 0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 4; n = 4;\r\ny_correct = [0,1,1,0;\r\n             1,1,1,1;\r\n             1,1,1,1;\r\n             0,1,1,0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 5; n = 3;\r\ny_correct = [0, 1, 0; 0, 1, 0; 1, 1, 1; 0, 1, 0; 0, 1, 0];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 3; n = 1;\r\ny_correct = ones(m,n);\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 16; n = 8;\r\ny_correct = [zeros(7,3),ones(7,2),zeros(7,3);ones(2,8);zeros(7,3),ones(7,2),zeros(7,3)];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 7; n = 280;\r\ny_correct = [zeros(3,139), ones(3,2), zeros(3,139); ones(1,280); zeros(3,139), ones(3,2), zeros(3,139)];\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 1; n = 1;\r\ny_correct = 1;\r\nassert(isequal(crossFlag2(m, n),y_correct))\r\n\r\n%%\r\nm = 0; n = 0;\r\ny_correct =[];\r\nassert(isequal(crossFlag2(m, n),y_correct));\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":8,"created_by":157354,"edited_by":223089,"edited_at":"2022-11-25T07:01:15.000Z","deleted_by":null,"deleted_at":null,"solvers_count":18,"test_suite_updated_at":"2022-11-25T07:01:15.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-10-11T20:16:53.000Z","updated_at":"2026-03-11T12:00:48.000Z","published_at":"2019-10-11T20:16:53.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, and all other elements in the matrix set as 0.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven two even numbers, [p, q], return a matrix of size p x q which has the centre band of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e numbers set as 1. However, there must be at least four zeros on the outer corners of the matrix.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, [m, n] = [3, 3] would return:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[0,1,0;\\n1,1,1;\\n0,1,0];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnd for even numbers: [p, q] = [4, 3] would return\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[0,1,0;\\n1,1,1;\\n1,1,1;\\n0,1,0];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1713,"title":"Can you beat the lottery?","description":"Well this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\r\n\r\n    check = 1;\r\n    while check == 1\r\n        D1 = round(rand(1,1)*5+1);\r\n        D2 = round(rand(1,1)*5+1);\r\n        D3 = round(rand(1,1)*5+1);\r\n        draw = sort([D1 D2 D3]);\r\n        if size(unique(fn), 2) == 3\r\n            check = 0;\r\n        end\r\n    end\r\n\r\nSo \"draw\" is the draw that is made. It is made up of 3 numbers between 1 and 5.  Note that the numbers do not repeat.  SO an example of an input is:\r\n\r\nlottery = [4 3 5];\r\n\r\nNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...) \r\n\r\nGood luck, and please play responsibly...","description_html":"\u003cp\u003eWell this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\u003c/p\u003e\u003cpre\u003e    check = 1;\r\n    while check == 1\r\n        D1 = round(rand(1,1)*5+1);\r\n        D2 = round(rand(1,1)*5+1);\r\n        D3 = round(rand(1,1)*5+1);\r\n        draw = sort([D1 D2 D3]);\r\n        if size(unique(fn), 2) == 3\r\n            check = 0;\r\n        end\r\n    end\u003c/pre\u003e\u003cp\u003eSo \"draw\" is the draw that is made. It is made up of 3 numbers between 1 and 5.  Note that the numbers do not repeat.  SO an example of an input is:\u003c/p\u003e\u003cp\u003elottery = [4 3 5];\u003c/p\u003e\u003cp\u003eNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...)\u003c/p\u003e\u003cp\u003eGood luck, and please play responsibly...\u003c/p\u003e","function_template":"function draw = lottery()\r\n  draw = [x x x];\r\nend","test_suite":"%%\r\ncheck = 1;\r\nwhile check == 1\r\n     D1 = round(rand(1,1)*4+1);\r\n     D2 = round(rand(1,1)*4+1);\r\n     D3 = round(rand(1,1)*4+1);\r\n     draw = sort([D1 D2 D3]);\r\n        if size(unique(draw), 2) == 3\r\n            check = 0;\r\n        end\r\nend\r\nassert(isequal(sort(lottery()),draw))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":2,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":48,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-12T21:15:43.000Z","updated_at":"2025-11-17T20:59:24.000Z","published_at":"2013-07-12T22:07:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell this one you may not get every time, but it is a lottery! Here is the code that generates the lottery numbers (you can try to use it to your advantage if you can):\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    check = 1;\\n    while check == 1\\n        D1 = round(rand(1,1)*5+1);\\n        D2 = round(rand(1,1)*5+1);\\n        D3 = round(rand(1,1)*5+1);\\n        draw = sort([D1 D2 D3]);\\n        if size(unique(fn), 2) == 3\\n            check = 0;\\n        end\\n    end]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo \\\"draw\\\" is the draw that is made. It is made up of 3 numbers between 1 and 5. Note that the numbers do not repeat. SO an example of an input is:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003elottery = [4 3 5];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNow the odds are 1 in 10 (or at least that is the total combinations that can occur), so if you get it exactly you win! (you win the correct answer...)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGood luck, and please play responsibly...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2459,"title":"grazing cows","description":"Here is a fun problem I encountered in high school.\r\n\r\nTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.","description_html":"\u003cp\u003eHere is a fun problem I encountered in high school.\u003c/p\u003e\u003cp\u003eTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.\u003c/p\u003e","function_template":"function y = graze(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 1;\r\ny_correct = 0.9566\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 2;\r\ny_correct = 3.8264;\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct = 34.4380;\r\nassert(isequal(graze(x),y_correct))\r\n\r\n%%\r\nx = 9;\r\ny_correct = 77.4855;\r\nassert(isequal(graze(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":39,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-23T11:07:08.000Z","updated_at":"2025-11-17T14:53:52.000Z","published_at":"2014-07-23T11:07:08.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHere is a fun problem I encountered in high school.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTwo cows are grazing in an enclosed square-shaped field of side length s meters. They are both tied by two ropes to the two adjacent corners of the field. Due to the ropes, they both will be able to graze only on a fraction of the field. Determine the the area of the field grazed by these two cows. Result should be rounded on 4 decimal points.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1687,"title":"Poker Card Deal!","description":"Anyone want to play a card game?  \r\n\r\nWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards.  Rows are the amount of people in play, columns are the amount of cards dealt to each person.  The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\r\n\r\nThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J.  The suits are s for spades, d for dimonds, h for hearts and c for clubs.  \r\n\r\nSo the final cards look like this:\r\n\r\n'js'\r\n\r\n'J'\r\n\r\n'2h'\r\n\r\n'ad'\r\n\r\n'5c' and so on.\r\n\r\nThis function reads in three variables, these are:\r\n\r\npeople -- This is the amount of people that the cards are being dealt to.\r\n\r\ncardsDelt  -- This is the amount of cards dealt to each person.\r\n\r\nisJokerIn --  This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\r\n\r\nso an example is the following, if the variables are:\r\n\r\n%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\r\n\r\npeople = 5;\r\n\r\ncardsDelt = 5; %note, this is a typical deal for a poker game...\r\n\r\nisJokerIn = 0; \r\n\r\nThe outputs will be:\r\n\r\ndealtDeck = \r\n\r\n    'qh'    'as'    '5s'     '2s'    'jd' \r\n    'ad'    '5d'    '9s'     '7h'    'ah' \r\n    '3c'    '2d'    'ac'     '8c'    'qd' \r\n    'kh'    '5h'    '4c'     '3h'    '10s'\r\n    '6h'    '8h'    '10c'    '4s'    '8d' \r\n\r\n%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\r\n\r\ndeckLeftover = \r\n\r\n    '3s'\r\n    '4h'\r\n    '2c'\r\n    '5c'\r\n    'qs'\r\n    'jh'\r\n    'kd'\r\n    '2h'\r\n    '9c'\r\n    '10h'\r\n    '9h'\r\n    '6d'\r\n    '7c'\r\n    '7s'\r\n    '8s'\r\n    'qc'\r\n    'js'\r\n    '9d'\r\n    '7d'\r\n    'ks'\r\n    '6c'\r\n    '6s'\r\n    '3d'\r\n    '10d'\r\n    'jc'\r\n    '4d'\r\n    'kc'\r\n\r\nWell I hope that everyone has fun with it!  Thank you!\r\n\r\n","description_html":"\u003cp\u003eAnyone want to play a card game?\u003c/p\u003e\u003cp\u003eWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards.  Rows are the amount of people in play, columns are the amount of cards dealt to each person.  The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\u003c/p\u003e\u003cp\u003eThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J.  The suits are s for spades, d for dimonds, h for hearts and c for clubs.\u003c/p\u003e\u003cp\u003eSo the final cards look like this:\u003c/p\u003e\u003cp\u003e'js'\u003c/p\u003e\u003cp\u003e'J'\u003c/p\u003e\u003cp\u003e'2h'\u003c/p\u003e\u003cp\u003e'ad'\u003c/p\u003e\u003cp\u003e'5c' and so on.\u003c/p\u003e\u003cp\u003eThis function reads in three variables, these are:\u003c/p\u003e\u003cp\u003epeople -- This is the amount of people that the cards are being dealt to.\u003c/p\u003e\u003cp\u003ecardsDelt  -- This is the amount of cards dealt to each person.\u003c/p\u003e\u003cp\u003eisJokerIn --  This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\u003c/p\u003e\u003cp\u003eso an example is the following, if the variables are:\u003c/p\u003e\u003cp\u003e%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\u003c/p\u003e\u003cp\u003epeople = 5;\u003c/p\u003e\u003cp\u003ecardsDelt = 5; %note, this is a typical deal for a poker game...\u003c/p\u003e\u003cp\u003eisJokerIn = 0;\u003c/p\u003e\u003cp\u003eThe outputs will be:\u003c/p\u003e\u003cp\u003edealtDeck =\u003c/p\u003e\u003cpre\u003e    'qh'    'as'    '5s'     '2s'    'jd' \r\n    'ad'    '5d'    '9s'     '7h'    'ah' \r\n    '3c'    '2d'    'ac'     '8c'    'qd' \r\n    'kh'    '5h'    '4c'     '3h'    '10s'\r\n    '6h'    '8h'    '10c'    '4s'    '8d' \u003c/pre\u003e\u003cp\u003e%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\u003c/p\u003e\u003cp\u003edeckLeftover =\u003c/p\u003e\u003cpre\u003e    '3s'\r\n    '4h'\r\n    '2c'\r\n    '5c'\r\n    'qs'\r\n    'jh'\r\n    'kd'\r\n    '2h'\r\n    '9c'\r\n    '10h'\r\n    '9h'\r\n    '6d'\r\n    '7c'\r\n    '7s'\r\n    '8s'\r\n    'qc'\r\n    'js'\r\n    '9d'\r\n    '7d'\r\n    'ks'\r\n    '6c'\r\n    '6s'\r\n    '3d'\r\n    '10d'\r\n    'jc'\r\n    '4d'\r\n    'kc'\u003c/pre\u003e\u003cp\u003eWell I hope that everyone has fun with it!  Thank you!\u003c/p\u003e","function_template":"function [dealtDeck, deckLeftover] = Poker_Deal(people,cardsDelt,isJokerIn)\r\ndealtDeck ='this is the dealt deck to players'\r\ndeckLeftover = 'is the left over cards in the deck, after being delt'\r\nend","test_suite":"%%\r\npeople = 5;\r\ncardsDelt = 5;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 25) \u0026 ~issorted(reshape(dealtDeck,25,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-25)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 5;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 15) \u0026 ~issorted(reshape(dealtDeck,15,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-15)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 4;\r\ncardsDelt = 7;\r\nisJokerIn = 0;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 28) \u0026 ~issorted(reshape(dealtDeck,28,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (52-28)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 5;\r\ncardsDelt = 6;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 30) \u0026 ~issorted(reshape(dealtDeck,30,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-30)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 4;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac'; 'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 12) \u0026 ~issorted(reshape(dealtDeck,12,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-12)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n%%\r\npeople = 3;\r\ncardsDelt = 3;\r\nisJokerIn = 1;\r\n[dealtDeck, deckLeftover] = Poker_Deal(people ,cardsDelt ,isJokerIn)\r\ndeckCheck = {'2h'; '3h'; '4h'; '5h'; '6h'; '7h'; '8h'; '9h'; '10h'; 'jh'; 'qh'; 'kh'; 'ah'; '2d'; '3d'; '4d'; '5d'; '6d'; '7d'; '8d'; '9d'; '10d'; 'jd'; 'qd'; 'kd'; 'ad'; '2s'; '3s'; '4s'; '5s'; '6s'; '7s'; '8s'; '9s'; '10s'; 'js'; 'qs'; 'ks'; 'as'; '2c'; '3c'; '4c'; '5c'; '6c'; '7c'; '8c'; '9c'; '10c'; 'jc'; 'qc'; 'kc'; 'ac';  'J'; 'J'}\r\nh = (sum(sum(ismember(deckCheck,dealtDeck))) == 9) \u0026 ~issorted(reshape(dealtDeck,9,1));\r\ng = (sum(ismember(deckCheck,deckLeftover)) == (54-9)) \u0026 ~issorted(deckLeftover);\r\ny_correct = g\u0026h;\r\nassert(isequal(g,h))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":50,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":15,"created_at":"2013-06-30T01:06:43.000Z","updated_at":"2026-04-02T19:37:49.000Z","published_at":"2013-06-30T01:06:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAnyone want to play a card game?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell this is making one deck of cards, with the option of using 2 jokers. The outputs are a matrix that represents dealt cards. Rows are the amount of people in play, columns are the amount of cards dealt to each person. The deck that is left over is where the cards were drawn from and is returned as well. That is it! No other things needed.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe cards are named with there face value, such as 2,3,4,5,6,7,8,9,10,j,q,k,a and a joker of only the capital letter J. The suits are s for spades, d for dimonds, h for hearts and c for clubs.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo the final cards look like this:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'js'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'J'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'2h'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'ad'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e'5c' and so on.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis function reads in three variables, these are:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003epeople -- This is the amount of people that the cards are being dealt to.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ecardsDelt -- This is the amount of cards dealt to each person.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eisJokerIn -- This is a true/false (that is 1 or 0), where 1 means 2 jokers (J) are included in play or 0 is no jokers are included in play.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eso an example is the following, if the variables are:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e%note this example is RANDOM, the outputs must be random to simulate a shuffled deck!!!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003epeople = 5;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ecardsDelt = 5; %note, this is a typical deal for a poker game...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eisJokerIn = 0;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe outputs will be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edealtDeck =\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    'qh'    'as'    '5s'     '2s'    'jd' \\n    'ad'    '5d'    '9s'     '7h'    'ah' \\n    '3c'    '2d'    'ac'     '8c'    'qd' \\n    'kh'    '5h'    '4c'     '3h'    '10s'\\n    '6h'    '8h'    '10c'    '4s'    '8d']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e%note, 5x5, where rows is amount of people and columns are amount of cards dealt...\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edeckLeftover =\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[    '3s'\\n    '4h'\\n    '2c'\\n    '5c'\\n    'qs'\\n    'jh'\\n    'kd'\\n    '2h'\\n    '9c'\\n    '10h'\\n    '9h'\\n    '6d'\\n    '7c'\\n    '7s'\\n    '8s'\\n    'qc'\\n    'js'\\n    '9d'\\n    '7d'\\n    'ks'\\n    '6c'\\n    '6s'\\n    '3d'\\n    '10d'\\n    'jc'\\n    '4d'\\n    'kc']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWell I hope that everyone has fun with it! Thank you!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1696,"title":"Morse Code Generator! Try it!","description":"  .... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \r\n        .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \r\n  \r\n\r\n\r\n  \r\n\r\n  text = 'Morse code is FUN!'\r\n  Morse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--'\r\n\r\n\r\nJust a note: this uses international style Morse code found in:\r\n\r\nhttp://en.wikipedia.org/wiki/American_Morse_code\r\n","description_html":"\u003cpre class=\"language-matlab\"\u003e.... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \r\n      .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003etext = 'Morse code is FUN!'\r\nMorse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--'\r\n\u003c/pre\u003e\u003cp\u003eJust a note: this uses international style Morse code found in:\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://en.wikipedia.org/wiki/American_Morse_code\"\u003ehttp://en.wikipedia.org/wiki/American_Morse_code\u003c/a\u003e\u003c/p\u003e","function_template":"function Morse_code_out = MorseCodeGenerator(text)\r\n  Morse_code_out = text_in;\r\nend","test_suite":"%%\r\nx = 'Morse code is FUN!';\r\ny_correct = '-- --- .-. ... .     -.-. --- -.. .     .. ...     ..-. ..- -. -.-.--';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = 'Am I 20, (who knows?)';\r\ny_correct = '.- --     ..     ..--- ----- --..--     -.--. .-- .... ---     -.- -. --- .-- ... ..--.. -.--.-';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: or does he...';\r\ny_correct = '- .... .     --.- ..- .. -.-. -.-     -... .-. --- .-- -.     ..-. --- -..-     .--- ..- -- .--. ...     --- ...- . .-.     - .... .     .-.. .- --.. -.--     -.. --- --. ---...     --- .-.     -.. --- . ...     .... . .-.-.- .-.-.- .-.-.-';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n%%\r\nx = '1234567890';\r\ny_correct = '.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----';\r\nassert(isequal(MorseCodeGenerator(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":92,"test_suite_updated_at":"2019-09-16T11:37:52.000Z","rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-05T18:50:09.000Z","updated_at":"2025-12-29T01:11:58.000Z","published_at":"2013-07-09T15:55:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[.... . .-.. .-.. ---     . ...- . .-. -.-- --- -. . -.-.-- \\n      .-.. . - ...       -.. ---       ... --- -- .       -- --- .-. ... .       -.-. --- -.. . -.-.--             .-- . .-.. .-..       - .... .. ...       -- --- .-. ... .       -.-. --- -.. .       --. . -. . .-. .- - --- .-.       ..- ... . ...       - .... .       .. -. - . .-. -. .- - .. --- -. .- .-..       ... - -.-- .-.. .       -- --- .-. ... .       -.-. --- -.. . .-.-.-             - .... .       .-.-.-       .- -. -..              -- .- -.- .       ..- .--.       .- .-.. .-..       - .... .       -.-. --- -.. . --..--       - .... . .-. .       .. ...       --- -. .       ... .--. .- -.-. .       - .... .- -       ... . .--. .- .-. .- - . ...       .-.. . - - . .-. ...       .- -. -..       .....       ... .--. .- -.-. . ...       - .... .- -       ... . .--. .- .-. .- - .       .-- --- .-. -.. ... .-.-.-             ... --- -- .       .--. ..- -. -.-. - ..- .- - .. --- -.       .. ...       ..- ... . -.. .-.-.- .-.-.- .-.-.-             --- - .... . .-.       - .... . -.       - .... .- - --..--       .- .-.. .-..       -.-- --- ..-       -. . . -..       - ---       -.. ---       .. ...       - .- -.- .       .. -.       ... --- -- .       - -.-- .--. .       --- ..-.       - . -..- -       .. -.       - .... .       ..-. --- .-. --       --- ..-.       .-       ... - .-. .. -. --.       .- -. -..       - ..- .-. -.       .. -       .. -. - ---       .-       -- --- .-. ... .       -.-. --- -.. .       .-.. .. -. .        -.-. .... .- .-.       -.-. .-.. .- ... ...  --..--       .- ...       - .... .       . -..- .- -- .--. .-.. .       -... . .-.. --- .--       ... .... --- .-- ...  \\n\\ntext = 'Morse code is FUN!'\\nMorse_code_out = '-- --- .-. ... .       -.-. --- -.. .       .. ...       ..-. ..- -. -.-.--']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJust a note: this uses international style Morse code found in:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://en.wikipedia.org/wiki/American_Morse_code\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ehttp://en.wikipedia.org/wiki/American_Morse_code\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1003,"title":"Make a KITT-scanner on the command line","description":"Did you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with |fprintf(char(8));| (ASCII code 8 is a backspace), and the last character is removed. \r\nThis way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with   \r\n\r\n fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));\r\n\r\nYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. \r\nThe characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example \r\n\r\n kitt(10,'#=~-')\r\n\r\ntells it to show up as\r\n\r\n '#=~-------'\r\n\r\nIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\r\n\r\n '=#--------'\r\n\r\nfollowed by \r\n\r\n '~=#-------'\r\n\r\nand \r\n\r\n '-~=#------'\r\n\r\nand so on.\r\nYou see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S.\r\nThe 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen.\r\nTo check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). \r\nAnd off course, try to avoid just hard-coding the result. ","description_html":"\u003cp\u003eDid you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with \u003ctt\u003efprintf(char(8));\u003c/tt\u003e (ASCII code 8 is a backspace), and the last character is removed. \r\nThis way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with\u003c/p\u003e\u003cpre\u003e fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));\u003c/pre\u003e\u003cp\u003eYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. \r\nThe characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example\u003c/p\u003e\u003cpre\u003e kitt(10,'#=~-')\u003c/pre\u003e\u003cp\u003etells it to show up as\u003c/p\u003e\u003cpre\u003e '#=~-------'\u003c/pre\u003e\u003cp\u003eIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\u003c/p\u003e\u003cpre\u003e '=#--------'\u003c/pre\u003e\u003cp\u003efollowed by\u003c/p\u003e\u003cpre\u003e '~=#-------'\u003c/pre\u003e\u003cp\u003eand\u003c/p\u003e\u003cpre\u003e '-~=#------'\u003c/pre\u003e\u003cp\u003eand so on.\r\nYou see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S.\r\nThe 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen.\r\nTo check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). \r\nAnd off course, try to avoid just hard-coding the result.\u003c/p\u003e","function_template":"function scanner = kitt(l,s)\r\n  scanner = [s repmat(s(end),1,l-length(s))];\r\n  fprintf(scanner);\r\n  pause(2000/l);\r\n  fprintf(repmat([char(8) ' ' char(8)],1,l));\r\nend","test_suite":"%%\r\nl = 5;\r\ns = '#=~-';\r\ny_correct = strvcat({\r\n   '#=~--'\r\n   '=#---'\r\n   '~=#--'\r\n   '-~=#-'\r\n   '--~=#'\r\n   '---#='\r\n   '--#=~'\r\n   '-#=~-'\r\n   '#=~--'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 2;\r\ns = '*';\r\ny_correct = strvcat({\r\n   '**'\r\n   '**'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 5;\r\ns = '@ ';\r\ny_correct = strvcat({\r\n   '@    '\r\n   ' @   '\r\n   '  @  '\r\n   '   @ '\r\n   '    @'\r\n   '   @ '\r\n   '  @  '\r\n   ' @   '\r\n   '@    '\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n%%\r\nl = 6;\r\ns = '@\u003e\u003e*=~ ';\r\ny_correct = strvcat({\r\n   '@\u003e\u003e*=~'\r\n   '\u003e@*=~ '\r\n   '\u003e\u003e@~  '\r\n   '*\u003e\u003e@  '\r\n   '=*\u003e\u003e@ '\r\n   '~=*\u003e\u003e@'\r\n   ' ~=*@\u003e'\r\n   '  ~@\u003e\u003e'\r\n   '  @\u003e\u003e*'\r\n   ' @\u003e\u003e*='\r\n   '@\u003e\u003e*=~'\r\n});\r\nassert(isequal(kitt(l,s),y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":6556,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":"2012-10-30T08:09:52.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-10-19T05:48:39.000Z","updated_at":"2025-11-21T11:17:59.000Z","published_at":"2012-10-19T05:52:44.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDid you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the output, e.g. with\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003efprintf(char(8));\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (ASCII code 8 is a backspace), and the last character is removed. This way, you can write a line, and remove it afterwards, by sending as many backspace characters as the line was long. However, you only move the cursor back, so when you want to clear a line, you have to move first the cursor to its beginning, then overwrite the line with blanks (spaces, ' '), and then move the cursor back once more. E.g. with\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ fprintf(repmat([char(8) ' ' char(8)],lenght_of_last_line,1));]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYour task is to program a KITT-scanner (the red sweeping light in front of the black car in the TV-series Knight Rider) on the command line. The bar has a width specified by the first parameter L of the function. The characters which the bar is made of are specified in the 2nd parameter, S, of the function. The first character of S is the actual light. The last character is 'background', and the tail of the light is defined by the characters in between. For example\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ kitt(10,'#=~-')]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003etells it to show up as\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '#=~-------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIt starts with the light on the left, tail to the right, and the light moving to the right in the next step. So,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '=#--------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efollowed by\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '~=#-------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ '-~=#------']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eand so on. You see, the headlight supersedes the tail, when the head and tail overlap. Otherwise, the characters just show up with in the order defined in S. The 'frame rate' of the scanner should be 1/2 Hz, or one sweep back and forth in 2 seconds, but this can not be checked by Cody. But you are encouraged to watch the result on your own screen. To check your code, the function should output a character array with the full sequence, until the first step is repeated, with every row a step in the sequence (including the repeated last step). And off course, try to avoid just hard-coding the result.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44270,"title":"Assert yourself!  Hack the assert function to pass this test.","description":"Have you ever wanted to test out one of those hacks you have seen which \"games\" the problem by simply overwriting the assert method?  Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from.  Well, this question is for you!  Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\r\n\r\n*Example 1*\r\n\r\n  y = assertYourself(10,1);\r\n  % Test is assert(false);\r\n\r\n*Example 2*\r\n\r\n  [v,y] = assertYourself(rand(10,1), 'blah','eh?');\r\n  % Test is assert(false);\r\n\r\nSee, just not fair.  \r\n\r\nNote: More unfair test cases added.","description_html":"\u003cp\u003eHave you ever wanted to test out one of those hacks you have seen which \"games\" the problem by simply overwriting the assert method?  Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from.  Well, this question is for you!  Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample 1\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = assertYourself(10,1);\r\n% Test is assert(false);\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eExample 2\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e[v,y] = assertYourself(rand(10,1), 'blah','eh?');\r\n% Test is assert(false);\r\n\u003c/pre\u003e\u003cp\u003eSee, just not fair.\u003c/p\u003e\u003cp\u003eNote: More unfair test cases added.\u003c/p\u003e","function_template":"function varargout = assertYourself(varargin)\r\n  \r\nend","test_suite":"%%\r\nx = 'Try this one';\r\ny_correct = rand(1);\r\nassert(isequal(assertYourself(x),y_correct))\r\n\r\n%%\r\nclear all;\r\nx = rand(10);\r\ny_correct = rand(1);\r\nassertYourself();\r\nassert(isequal(true,false))\r\n\r\n%%\r\nclear all;\r\nx = rand(10);\r\ny = assertYourself(x,'blah')\r\ny_correct = rand(1);\r\nassert(isequal(y,y_correct))\r\n\r\n%%\r\nclear all;\r\nx = randi(26,10);\r\ny_correct = rand(1);\r\n[v,z]= assertYourself(x,x,x);\r\nz;\r\nmsg = ['That is not even fair!  ',char(randi(26,1,10)+'A')]\r\nassert(isequal(x,y_correct));\r\n\r\n%% \r\nclear all;\r\n[v,z]= assertYourself();\r\nv;\r\nassert(false);","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":130819,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":4,"test_suite_updated_at":"2017-07-30T04:46:03.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-07-28T03:49:16.000Z","updated_at":"2017-08-05T18:56:15.000Z","published_at":"2017-07-28T03:58:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHave you ever wanted to test out one of those hacks you have seen which \\\"games\\\" the problem by simply overwriting the assert method? Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from. Well, this question is for you! Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample 1\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = assertYourself(10,1);\\n% Test is assert(false);]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample 2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[[v,y] = assertYourself(rand(10,1), 'blah','eh?');\\n% Test is assert(false);]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee, just not fair.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: More unfair test cases added.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42710,"title":"Cleaner","description":"Write a code _cleaner_ which creates variable/object that can clear current workspace when used.\r\nMissing semicolon (\";\") in line returning that \"thing\" will activate cleaning.\r\nExample:\r\n\r\n   \u003e\u003e x = 1; y = 2; z = 3;\r\n   \u003e\u003e a = cleaner;\r\n   \u003e\u003e b = a;\r\n   \u003e\u003e who\r\n\r\n   Your variables are:\r\n   a  b  x  y  z  \r\n  \r\n   \u003e\u003e b\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   b\r\n   \r\n   \u003e\u003e c = b\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   c\r\n   \r\n   \u003e\u003e z = 7\r\n   \r\n   z = \r\n       7\r\n\r\n   \u003e\u003e cleaner\r\n   \u003e\u003e who\r\n   \r\n   Your variables are:\r\n   ans\r\n  ","description_html":"\u003cp\u003eWrite a code \u003ci\u003ecleaner\u003c/i\u003e which creates variable/object that can clear current workspace when used.\r\nMissing semicolon (\";\") in line returning that \"thing\" will activate cleaning.\r\nExample:\u003c/p\u003e\u003cpre\u003e   \u0026gt;\u0026gt; x = 1; y = 2; z = 3;\r\n   \u0026gt;\u0026gt; a = cleaner;\r\n   \u0026gt;\u0026gt; b = a;\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   a  b  x  y  z  \u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; b\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   b\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; c = b\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   c\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; z = 7\u003c/pre\u003e\u003cpre\u003e   z = \r\n       7\u003c/pre\u003e\u003cpre\u003e   \u0026gt;\u0026gt; cleaner\r\n   \u0026gt;\u0026gt; who\u003c/pre\u003e\u003cpre\u003e   Your variables are:\r\n   ans\u003c/pre\u003e","function_template":"function obj = cleaner\r\n  % or classdef?\r\n  clear\r\nend","test_suite":"%%\r\n%{\r\n╔═══════════════════════════════════════════╗\r\n║ Please, play against the given problem,   ║\r\n║ not against weaknesses of the Test Suite. ║\r\n║ There is no 100% efficient method to      ║\r\n║ prevent cheating solutions, so there is   ║\r\n║ no extra protection used. I'd be happy if ║\r\n║ there were no solutions with code hidden  ║\r\n║ in strings only to decrease the \"size\".   ║\r\n║ Little hacks, used in order to complete   ║\r\n║ the task, are allowed, but please don't   ║\r\n║ change the filename. All suggestions are  ║\r\n║ welkome.                                  ║\r\n║ Thanks \u0026 have fun.                   Jan  ║\r\n╚═══════════════════════════════════════════╝\r\n%}\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner\r\n% no \";\" only \"b\" stays alive\r\nassert(numel(who)==1)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner;\r\n% cleaner not activated\r\nassert(numel(who)==3)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nz = 'hello'\r\nb = {cleaner}\r\n% cleaner wrapped in cell, no action\r\nassert(numel(who)==4)\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner;\r\nassert(isequal(who,{'b';'x';'y_correct'}))\r\nb\r\nassert(isequal(who,{'b'}))\r\n%%\r\nb1 = cleaner;\r\nb2 = cleaner;\r\nb3 = cleaner;\r\nb4 = cleaner;\r\nassert(isequal(who,{'b1';'b2';'b3';'b4'}))\r\nassert(isequal(b1,b2,b3,b4,cleaner))\r\nb3\r\n% clean other cleaners, only \"b3\" survives here\r\nassert(isequal(who,{'b3'}))\r\n%%\r\nx = 1;\r\ny_correct = 1;\r\nb = cleaner\r\nassert(numel(who)==1)\r\nx = 1; \r\ny = 2\r\nassert(numel(who)==3)\r\na = b\r\nassert(isequal(who,{'a'}))\r\n%%\r\n% cleaning other workspace (of created below function in temp.m)\r\n%{\r\nfunction out = temp(in)\r\n  x = 1;\r\n  y = 2;\r\n  assert(numel(who)==3)\r\n  k = in\r\n  out = who;\r\nend\r\n%}\r\nf1 = fopen('temp.m','w');\r\nfprintf(f1,'function out=temp(in)\\n  x=1;\\n  y=2;\\n  assert(numel(who)==3)\\n  k=in\\n  out=who;\\nend');\r\nfclose(f1);\r\nclear;\r\nx = 1;\r\ny = 2;\r\nz = cleaner;\r\na = temp(z)\r\nassert(isequal(who,{'a';'x';'y';'z'}))\r\nassert(isequal(a,{'k'}))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":14358,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":"2016-01-22T12:47:33.000Z","rescore_all_solutions":true,"group_id":1,"created_at":"2016-01-13T11:14:47.000Z","updated_at":"2016-01-22T12:47:33.000Z","published_at":"2016-01-13T11:40:23.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a code\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ecleaner\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e which creates variable/object that can clear current workspace when used. Missing semicolon (\\\";\\\") in line returning that \\\"thing\\\" will activate cleaning. Example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[   \u003e\u003e x = 1; y = 2; z = 3;\\n   \u003e\u003e a = cleaner;\\n   \u003e\u003e b = a;\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   a  b  x  y  z  \\n\\n   \u003e\u003e b\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   b\\n\\n   \u003e\u003e c = b\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   c\\n\\n   \u003e\u003e z = 7\\n\\n   z = \\n       7\\n\\n   \u003e\u003e cleaner\\n   \u003e\u003e who\\n\\n   Your variables are:\\n   ans]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1721,"title":"Backslang, odds are you used it at some point in time...","description":"So backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it.  Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end. \r\n\r\nHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\r\n\r\n  str = 'The sky is falling, the sky is falling, or is it?'\r\n\r\n  output = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?\r\n\r\nUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\r\n\r\nOodgay Ucklay!","description_html":"\u003cp\u003eSo backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it.  Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end.\u003c/p\u003e\u003cp\u003eHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003estr = 'The sky is falling, the sky is falling, or is it?'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eoutput = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?\r\n\u003c/pre\u003e\u003cp\u003eUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\u003c/p\u003e\u003cp\u003eOodgay Ucklay!\u003c/p\u003e","function_template":"function output = backslang(str)\r\n  output = str;\r\nend","test_suite":"%%\r\nstr = 'The sky is falling, the sky is falling, or is it?'\r\noutput = 'Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'If Allen is Janes husband and Tom is Jill husband, who is Roys wife?'\r\noutput = 'Fiay Llenaay siay Anesjay usbandhay ndaay Omtay siay Illjay usbandhay, howay siay Oysray ifeway?'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'This is the sentence I will use.'\r\noutput = 'Histay siay hetay entencesay Iay illway seuay.'\r\nassert(isequal(backslang(str),output))\r\n%%\r\nstr = 'Christopher Columbus sailed the ocean blue!'\r\noutput = 'Hristophercay Olumbuscay ailedsay hetay ceanoay luebay!'\r\nassert(isequal(backslang(str),output))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":15013,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":81,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":28,"created_at":"2013-07-17T16:39:49.000Z","updated_at":"2026-03-09T02:10:26.000Z","published_at":"2013-07-17T16:39:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSo backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it. Well this backslang follows rules that are fairly customary. You take the first letter of a word and put it in the end, then add 'ay' on the end.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHatstay tiay! Onay oremay onay esslay. Ellway erehay reaay omesay xampleseay:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[str = 'The sky is falling, the sky is falling, or is it?'\\n\\noutput = Hetay kysay siay allingfay, hetay kysay siay allingfay, roay siay tiay?]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eUstjay aay otenay, omesay unctuationpay ndaay apitalscay oday ountcay.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOodgay Ucklay!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"fun\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"fun\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"fun\"","","\"","fun","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f9c69431400\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f9c69431360\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f9c69430aa0\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f9c69431680\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f9c694315e0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f9c69431540\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f9c694314a0\u003e":"tag:\"fun\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f9c694314a0\u003e":"tag:\"fun\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"cody-search","password":"78X075ddcV44","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"fun\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"fun\"","","\"","fun","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f9c69431400\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f9c69431360\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f9c69430aa0\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f9c69431680\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f9c694315e0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f9c69431540\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f9c694314a0\u003e":"tag:\"fun\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f9c694314a0\u003e":"tag:\"fun\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":44688,"difficulty_rating":"easy"},{"id":44493,"difficulty_rating":"easy"},{"id":60956,"difficulty_rating":"easy"},{"id":43747,"difficulty_rating":"easy"},{"id":44413,"difficulty_rating":"easy"},{"id":43557,"difficulty_rating":"easy"},{"id":48015,"difficulty_rating":"easy"},{"id":304,"difficulty_rating":"easy"},{"id":43143,"difficulty_rating":"easy"},{"id":44664,"difficulty_rating":"easy"},{"id":42632,"difficulty_rating":"easy"},{"id":748,"difficulty_rating":"easy"},{"id":2053,"difficulty_rating":"easy"},{"id":44093,"difficulty_rating":"easy"},{"id":2416,"difficulty_rating":"easy"},{"id":1667,"difficulty_rating":"easy"},{"id":44444,"difficulty_rating":"easy"},{"id":1230,"difficulty_rating":"easy"},{"id":1681,"difficulty_rating":"easy"},{"id":1384,"difficulty_rating":"easy"},{"id":49962,"difficulty_rating":"easy"},{"id":43740,"difficulty_rating":"easy"},{"id":1437,"difficulty_rating":"easy"},{"id":44524,"difficulty_rating":"easy"},{"id":1188,"difficulty_rating":"easy"},{"id":167,"difficulty_rating":"easy"},{"id":157,"difficulty_rating":"easy"},{"id":149,"difficulty_rating":"easy"},{"id":44060,"difficulty_rating":"easy"},{"id":43571,"difficulty_rating":"easy"},{"id":1561,"difficulty_rating":"easy"},{"id":44441,"difficulty_rating":"easy-medium"},{"id":1719,"difficulty_rating":"easy-medium"},{"id":1712,"difficulty_rating":"easy-medium"},{"id":1052,"difficulty_rating":"easy-medium"},{"id":1630,"difficulty_rating":"easy-medium"},{"id":42766,"difficulty_rating":"easy-medium"},{"id":43061,"difficulty_rating":"easy-medium"},{"id":2002,"difficulty_rating":"easy-medium"},{"id":2151,"difficulty_rating":"easy-medium"},{"id":1062,"difficulty_rating":"easy-medium"},{"id":45172,"difficulty_rating":"easy-medium"},{"id":1713,"difficulty_rating":"easy-medium"},{"id":2459,"difficulty_rating":"easy-medium"},{"id":1687,"difficulty_rating":"easy-medium"},{"id":1696,"difficulty_rating":"medium"},{"id":1003,"difficulty_rating":"medium"},{"id":44270,"difficulty_rating":"medium"},{"id":42710,"difficulty_rating":"medium"},{"id":1721,"difficulty_rating":"medium"}]}}