{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2025-12-14T01:33:56.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":"2025-12-14T00: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":44548,"title":"ASCII sum of phrases","description":"Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array:\r\n[77   121    32   110    97   109   101    32   105   115    32   116   101   115   116] i.e. 1379","description_html":"\u003cp\u003eFind the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array:\r\n[77   121    32   110    97   109   101    32   105   115    32   116   101   115   116] i.e. 1379\u003c/p\u003e","function_template":"function y = str_to_number(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 'Tilda : ~';\r\ny_correct = 742;\r\nassert(isequal(str_to_number(x),742))\r\n%%\r\nx = 'Practise more';\r\ny_correct = 1294;\r\nassert(isequal(str_to_number(x),1294))\r\n%%\r\nx = '1 last test';\r\ny_correct = 997;\r\nassert(isequal(str_to_number(x),997))\r\n%%\r\nx = 'OK, Definitely the last!';\r\ny_correct = 997;\r\nassert(isequal(str_to_number(x),2121))","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":50,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-04-02T16:01:56.000Z","updated_at":"2026-03-02T09:04:48.000Z","published_at":"2018-04-02T16:01: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\u003eFind the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array: [77 121 32 110 97 109 101 32 105 115 32 116 101 115 116] i.e. 1379\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":42927,"title":"Corresponding ASCII code.","description":"Given the number, the output will show the corresponding ASCII code.","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: 21px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 10.5px; transform-origin: 407px 10.5px; 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 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: 219px 8px; transform-origin: 219px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven the number, the output will show the corresponding ASCII code.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = ....;\r\nend","test_suite":"%%\r\nx = 98;\r\ny_correct = 'b';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 7*11;\r\ny_correct = 'M';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 10^2;\r\ny_correct = 'd';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = max(primes(102));\r\ny_correct = 'e';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = factorial(5);\r\ny_correct = 'x';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 3^4;\r\ny_correct = 'Q';\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":27348,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":106,"test_suite_updated_at":"2021-07-01T17:59:05.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-08-26T17:15:48.000Z","updated_at":"2026-03-31T09:46:37.000Z","published_at":"2016-08-26T17:15: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\u003eGiven the number, the output will show the corresponding ASCII code.\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":2216,"title":"Given an input string, generate a variable name out of it ","description":"Given an input string, generate a variable name out of it in easy to read format by a programmer.\r\nIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\r\nExample\r\n input = 'this is an input var'\r\n output = 'thisIsAnInputVar'\r\nAnother example\r\n input = 'this one has special char @123'\r\n output = 'thisOneHasSpecialChar_123'","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: 234.733px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 117.367px; transform-origin: 407px 117.367px; 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: 304.5px 8px; transform-origin: 304.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven an input string, generate a variable name out of it in easy to read format by a programmer.\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: 378px 8px; transform-origin: 378px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\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: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; 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 20.4333px; transform-origin: 404px 20.4333px; 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: 124px 8.5px; tab-size: 4; transform-origin: 124px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 36px 8.5px; transform-origin: 36px 8.5px; \"\u003e input = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 88px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 88px 8.5px; \"\u003e'this is an input var'\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: 112px 8.5px; tab-size: 4; transform-origin: 112px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 40px 8.5px; transform-origin: 40px 8.5px; \"\u003e output = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 72px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 72px 8.5px; \"\u003e'thisIsAnInputVar'\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: 53px 8px; transform-origin: 53px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAnother example\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; 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 20.4333px; transform-origin: 404px 20.4333px; 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: 164px 8.5px; tab-size: 4; transform-origin: 164px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 36px 8.5px; transform-origin: 36px 8.5px; \"\u003e input = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 128px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 128px 8.5px; \"\u003e'this one has special char @123'\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: 148px 8.5px; tab-size: 4; transform-origin: 148px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 40px 8.5px; transform-origin: 40px 8.5px; \"\u003e output = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 108px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 108px 8.5px; \"\u003e'thisOneHasSpecialChar_123'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = InputVarName(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx= 'this is an input var';\r\ny_correct = 'thisIsAnInputVar';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'this one has special char @123';\r\ny_correct = 'thisOneHasSpecialChar_123';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'RealInput Variable !!';\r\ny_correct = 'RealInputVariable__';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'This^is^fun^23^45^too';\r\ny_correct = 'This_is_fun_23_45_too';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":5,"created_by":16381,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":29,"test_suite_updated_at":"2021-08-27T10:07:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-24T18:09:38.000Z","updated_at":"2021-08-27T10:07:22.000Z","published_at":"2014-02-24T20:59:58.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\u003eGiven an input string, generate a variable name out of it in easy to read format by a 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\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\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\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 = 'this is an input var'\\n output = 'thisIsAnInputVar']]\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\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[ input = 'this one has special char @123'\\n output = 'thisOneHasSpecialChar_123']]\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":44380,"title":"ASCII Birthday Cake","description":"Given an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\r\n\r\n   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\r\n\r\nThis uses the \u003chttps://www.mathworks.com/help/matlab/ref/string.html string datatype\u003e, not a char array.","description_html":"\u003cp\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\u003c/p\u003e\u003cpre\u003e   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\u003c/pre\u003e\u003cp\u003eThis uses the \u003ca href = \"https://www.mathworks.com/help/matlab/ref/string.html\"\u003estring datatype\u003c/a\u003e, not a char array.\u003c/p\u003e","function_template":"function s = birthday_cake(name, n)\r\n    s = \"\";\r\n    s = s + \"name\";\r\nend","test_suite":"%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 67 79 68 89 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"CODY\", 5), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 64 98 109 116 114 97 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"@bmtran\", 29), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 77 65 84 76 65 66 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"MATLAB\", 33), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 67 108 101 118 101 32 77 111 108 101 114 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Cleve Moler\", 78), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 65 108 97 110 32 84 117 114 105 110 103 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Alan Turing\", 105), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 83 105 114 32 73 115 97 97 99 32 78 101 119 116 111 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Sir Isaac Newton\", 375), cake));","published":true,"deleted":false,"likes_count":10,"comments_count":4,"created_by":134,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":227,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":34,"created_at":"2017-10-12T19:48:13.000Z","updated_at":"2026-03-25T05:11:31.000Z","published_at":"2017-10-16T01:45:10.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\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \\\"CODY\\\" and the age 5, return a string with the following (no trailing spaces)\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[   6 6 6 6 6\\n   | | | | |\\n __|_|_|_|_|__\\n{             }\\n{             }\\n{    CODY     }\\n{             }\\n{_____________}]]\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\u003eThis uses the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/ref/string.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring datatype\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, not a char array.\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":1199,"title":"ASCII art","description":"Convert a grayscale image to ASCII\r\n\r\n\u003c\u003chttp://www.alfnie.com/software/cameraman.jpg\u003e\u003e\r\n\r\n\r\n*Inputs:*\r\n\r\n* *img*: Grayscale image (a matrix of values between 0 and 1)\r\n* *chars*: Char array of valid ascii characters\r\n* *bitmap*: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\r\n\r\n*Output:*\r\n\r\nBin the original image _img_ into segments of size _Height x Width_, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values). \r\n\r\nReturn the fitted ascii image: a matrix of characters in *chars* that, when displayed, approximates the image *img*.\r\n\r\n\r\n                                                                         \r\n                              _____                                      \r\n                             QQÊÊÊÊþ¿_                                   \r\n                            gÊÊÊÊÊÊÊÊÊþ                                  \r\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\r\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ®½g                        `````\r\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q©ÑmM                     ``````\r\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ©Ñ ÊÊÊÊÊQ____g                   ` ````\r\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\r\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\r\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\r\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\r\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\r\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\r\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\r\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\r\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\r\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\r\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\r\nÑÑÑÑ©¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\r\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\r\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g©ÑÑÑÊÊÑÑ\r\nÑ»©QQÿ©©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`©ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ©©ÑÑÑÑÑÊÊÊÊÊ\r\nÑ©©ÑÑÑ©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\r\n©`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê ©Q©©Ñ»²©©ÑÊþQQQQQQQQQQQQ©©©©©©©©QQ\r\n©©Q©©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ©©©©ÊÊÊ°QQÊ Q©Q©QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\r\n©Ü©©^»²©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»©»©Î»»Q¸ÜÊþQÑÑ©©ÑÑ©©©©ÜÑÑÑÑÑÑÑÑÑ\r\n©»»»QQÑ©Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»©©»¸¨²²²©©Ñ©Ñh¯Ê_©»QQÑ©ÑÑQÑQÑÑÑÑÑÑÑÑQ\r\n©QQîQ©»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ©QQÑQQQ©Î^QÎÑQQQ©ÑÊþ©©ÑÑ©Ñ©Ñ©ÑÑÑÑQQQQQQ\r\nÑ©ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ©Q»ÎÎ»½©¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\r\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ©ÑÑQQÑÑ©©©Ñ»½©©©©©QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\r\nÑQQÑQ©Ñ©©ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯©QQ©Ñ©©ÿ©©ÑÑ©ÿÑ½½ÑÑ½ÑÑq ýÿ©QÑ©Ñ©ÑÑ©©ÑÑÑ©Q\r\nÑÜj©Q©QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ©©©©Q° »Q©©Î©Q©QQQ©ÑÑÑQÎ©ÑÑ©Ñ©ÑÀ`ÑÑÑÑÑÑ©ÑÑÑÑÑÑÜQQ\r\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ©©Ê ¸ÑÑ©©©Q©ÑQÑQ©ÑQÑÑ©QÑÑÑQQÑÑ¿³ÑÑÑÑ©ÑÑÑÑÑÑQÑQÑ\r\n©ÑÑÑQÑQ©ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ©ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ©ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ\r\n\r\n\r\n*note*: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\r\n\r\n fontsize=6;\r\n figure;\r\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\r\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\r\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);\r\n\r\nand edit the value _fontsize_ so that the image fits within the figure.\r\n","description_html":"\u003cp\u003eConvert a grayscale image to ASCII\u003c/p\u003e\u003cimg src=\"http://www.alfnie.com/software/cameraman.jpg\"\u003e\u003cp\u003e\u003cb\u003eInputs:\u003c/b\u003e\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cb\u003eimg\u003c/b\u003e: Grayscale image (a matrix of values between 0 and 1)\u003c/li\u003e\u003cli\u003e\u003cb\u003echars\u003c/b\u003e: Char array of valid ascii characters\u003c/li\u003e\u003cli\u003e\u003cb\u003ebitmap\u003c/b\u003e: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\u003c/li\u003e\u003c/ul\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e\u003c/p\u003e\u003cp\u003eBin the original image \u003ci\u003eimg\u003c/i\u003e into segments of size \u003ci\u003eHeight x Width\u003c/i\u003e, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values).\u003c/p\u003e\u003cp\u003eReturn the fitted ascii image: a matrix of characters in \u003cb\u003echars\u003c/b\u003e that, when displayed, approximates the image \u003cb\u003eimg\u003c/b\u003e.\u003c/p\u003e\u003cpre\u003e                              _____                                      \r\n                             QQÊÊÊÊþ¿_                                   \r\n                            gÊÊÊÊÊÊÊÊÊþ                                  \r\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\r\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ®½g                        `````\r\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q©ÑmM                     ``````\r\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ©Ñ ÊÊÊÊÊQ____g                   ` ````\r\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\r\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\r\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\r\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\r\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\r\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\r\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\r\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\r\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\r\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\r\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\r\nÑÑÑÑ©¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\r\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\r\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g©ÑÑÑÊÊÑÑ\r\nÑ»©QQÿ©©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`©ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ©©ÑÑÑÑÑÊÊÊÊÊ\r\nÑ©©ÑÑÑ©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\r\n©`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê ©Q©©Ñ»²©©ÑÊþQQQQQQQQQQQQ©©©©©©©©QQ\r\n©©Q©©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ©©©©ÊÊÊ°QQÊ Q©Q©QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\r\n©Ü©©^»²©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»©»©Î»»Q¸ÜÊþQÑÑ©©ÑÑ©©©©ÜÑÑÑÑÑÑÑÑÑ\r\n©»»»QQÑ©Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»©©»¸¨²²²©©Ñ©Ñh¯Ê_©»QQÑ©ÑÑQÑQÑÑÑÑÑÑÑÑQ\r\n©QQîQ©»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ©QQÑQQQ©Î^QÎÑQQQ©ÑÊþ©©ÑÑ©Ñ©Ñ©ÑÑÑÑQQQQQQ\r\nÑ©ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ©Q»ÎÎ»½©¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\r\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ©ÑÑQQÑÑ©©©Ñ»½©©©©©QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\r\nÑQQÑQ©Ñ©©ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯©QQ©Ñ©©ÿ©©ÑÑ©ÿÑ½½ÑÑ½ÑÑq ýÿ©QÑ©Ñ©ÑÑ©©ÑÑÑ©Q\r\nÑÜj©Q©QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ©©©©Q° »Q©©Î©Q©QQQ©ÑÑÑQÎ©ÑÑ©Ñ©ÑÀ`ÑÑÑÑÑÑ©ÑÑÑÑÑÑÜQQ\r\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ©©Ê ¸ÑÑ©©©Q©ÑQÑQ©ÑQÑÑ©QÑÑÑQQÑÑ¿³ÑÑÑÑ©ÑÑÑÑÑÑQÑQÑ\r\n©ÑÑÑQÑQ©ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ©ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ©ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ\u003c/pre\u003e\u003cp\u003e\u003cb\u003enote\u003c/b\u003e: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\u003c/p\u003e\u003cpre\u003e fontsize=6;\r\n figure;\r\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\r\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\r\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);\u003c/pre\u003e\u003cp\u003eand edit the value \u003ci\u003efontsize\u003c/i\u003e so that the image fits within the figure.\u003c/p\u003e","function_template":"function str = gray2char(img,chars,bitmap)\r\n  str=' :) ';\r\nend\r\n","test_suite":"%%\r\nchars=char([32:126,161:255]);\r\nbitmap=mean(double(imread('http://www.alfnie.com/software/monobitmap.bmp'))/255,3);\r\nbitmap=reshape(bitmap,size(bitmap,1),[],numel(chars));\r\n\r\nimg=imread('peppers.png');\r\nimg=sqrt(mean(double(img)/256,3));\r\nimg=img(1:floor(size(img,1)/size(bitmap,1))*size(bitmap,1),1:floor(size(img,2)/size(bitmap,2))*size(bitmap,2));\r\n\r\nstr=gray2char(img,chars,bitmap)\r\n\r\nassert(isequal(size(str),[14 36]));\r\n[i,loc]=ismember(str,chars);\r\nassert(all(all(i)));\r\nimg=permute(reshape(img,size(bitmap,1),size(img,1)/size(bitmap,1),size(bitmap,2),size(img,2)/size(bitmap,2)),[1,3,2,4]);\r\nd=mean(mean(mean(abs(bitmap(:,:,loc)-img(:,:,:)).^2,3),2),1);\r\nassert(d\u003c=0.11);\r\n\r\n%%\r\nchars=char([32:126,161:255]);\r\nbitmap=mean(double(imread('http://www.alfnie.com/software/monobitmap.bmp'))/255,3);\r\nbitmap=reshape(bitmap,size(bitmap,1),[],numel(chars));\r\n\r\nimg=load('clown.mat');\r\nimg=mean(ind2rgb(img.X,img.map),3);\r\nimg=double(img(ceil(.25:.25:end),ceil(.25:.25:end))).^.25;\r\nimg=img(1:floor(size(img,1)/size(bitmap,1))*size(bitmap,1),1:floor(size(img,2)/size(bitmap,2))*size(bitmap,2));\r\n\r\nstr=gray2char(img,chars,bitmap)\r\n\r\nassert(isequal(size(str),[30 91]));\r\n[i,loc]=ismember(str,chars);\r\nassert(all(all(i)));\r\nimg=permute(reshape(img,size(bitmap,1),size(img,1)/size(bitmap,1),size(bitmap,2),size(img,2)/size(bitmap,2)),[1,3,2,4]);\r\nd=mean(mean(mean(abs(bitmap(:,:,loc)-img(:,:,:)).^2,3),2),1);\r\nassert(d\u003c=0.172);\r\n\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":0,"created_by":43,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":"2014-05-07T01:58:02.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-12T04:48:09.000Z","updated_at":"2014-05-07T01:58:02.000Z","published_at":"2013-01-12T07:10: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\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/media/image1.JPEG\"}],\"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\u003eConvert a grayscale image to ASCII\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:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"-1\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"-1\\\"/\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\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\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eimg\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Grayscale image (a matrix of values between 0 and 1)\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003echars\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Char array of valid ascii characters\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ebitmap\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\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\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\u003eBin the original image\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\u003eimg\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e into segments of size\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\u003eHeight x Width\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values).\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 the fitted ascii image: a matrix of characters in\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\u003echars\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e that, when displayed, approximates the image\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\u003eimg\u003c/w:t\u003e\u003c/w:r\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=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[                              _____                                      \\n                             QQÊÊÊÊþ¿_                                   \\n                            gÊÊÊÊÊÊÊÊÊþ                                  \\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ\u0026reg;½g                        `````\\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q\u0026copy;ÑmM                     ``````\\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ\u0026copy;Ñ ÊÊÊÊÊQ____g                   ` ````\\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\\nÑÑÑÑ\u0026copy;¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g\u0026copy;ÑÑÑÊÊÑÑ\\nÑ»\u0026copy;QQÿ\u0026copy;\u0026copy;QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`\u0026copy;ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ\u0026copy;\u0026copy;ÑÑÑÑÑÊÊÊÊÊ\\nÑ\u0026copy;\u0026copy;ÑÑÑ\u0026copy;QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\\n\u0026copy;`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê \u0026copy;Q\u0026copy;\u0026copy;Ñ»²\u0026copy;\u0026copy;ÑÊþQQQQQQQQQQQQ\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;QQ\\n\u0026copy;\u0026copy;Q\u0026copy;\u0026copy;ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ\u0026copy;\u0026copy;\u0026copy;\u0026copy;ÊÊÊ°QQÊ Q\u0026copy;Q\u0026copy;QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\\n\u0026copy;Ü\u0026copy;\u0026copy;^»²\u0026copy;ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»\u0026copy;»\u0026copy;Î»»Q¸ÜÊþQÑÑ\u0026copy;\u0026copy;ÑÑ\u0026copy;\u0026copy;\u0026copy;\u0026copy;ÜÑÑÑÑÑÑÑÑÑ\\n\u0026copy;»»»QQÑ\u0026copy;Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»\u0026copy;\u0026copy;»¸¨²²²\u0026copy;\u0026copy;Ñ\u0026copy;Ñh¯Ê_\u0026copy;»QQÑ\u0026copy;ÑÑQÑQÑÑÑÑÑÑÑÑQ\\n\u0026copy;QQîQ\u0026copy;»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ\u0026copy;QQÑQQQ\u0026copy;Î^QÎÑQQQ\u0026copy;ÑÊþ\u0026copy;\u0026copy;ÑÑ\u0026copy;Ñ\u0026copy;Ñ\u0026copy;ÑÑÑÑQQQQQQ\\nÑ\u0026copy;ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ\u0026copy;Q»ÎÎ»½\u0026copy;¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ\u0026copy;ÑÑQQÑÑ\u0026copy;\u0026copy;\u0026copy;Ñ»½\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\\nÑQQÑQ\u0026copy;Ñ\u0026copy;\u0026copy;ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯\u0026copy;QQ\u0026copy;Ñ\u0026copy;\u0026copy;ÿ\u0026copy;\u0026copy;ÑÑ\u0026copy;ÿÑ½½ÑÑ½ÑÑq ýÿ\u0026copy;QÑ\u0026copy;Ñ\u0026copy;ÑÑ\u0026copy;\u0026copy;ÑÑÑ\u0026copy;Q\\nÑÜj\u0026copy;Q\u0026copy;QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ\u0026copy;\u0026copy;\u0026copy;\u0026copy;Q° »Q\u0026copy;\u0026copy;Î\u0026copy;Q\u0026copy;QQQ\u0026copy;ÑÑÑQÎ\u0026copy;ÑÑ\u0026copy;Ñ\u0026copy;ÑÀ`ÑÑÑÑÑÑ\u0026copy;ÑÑÑÑÑÑÜQQ\\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ\u0026copy;\u0026copy;Ê ¸ÑÑ\u0026copy;\u0026copy;\u0026copy;Q\u0026copy;ÑQÑQ\u0026copy;ÑQÑÑ\u0026copy;QÑÑÑQQÑÑ¿³ÑÑÑÑ\u0026copy;ÑÑÑÑÑÑQÑQÑ\\n\u0026copy;ÑÑÑQÑQ\u0026copy;ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ\u0026copy;ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ\u0026copy;ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ]]\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\u003enote\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\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[ fontsize=6;\\n figure;\\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);]]\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 edit the value\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\u003efontsize\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e so that the image fits within the figure.\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\"},{\"partUri\":\"/media/image1.JPEG\",\"contentType\":\"image/JPEG\",\"content\":\"data:image/JPEG;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyM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oAAEC8R7mX0psjRhB8u3nIyKUszSfKVDHgY4BqZLV43DzNuRx8oDdaAMTUpGluhkAYQCqqYkiKmrWoMr6jIRwOAOapRuFlZcigCzZwmWaNc8A5P0FaurFY9OdnDDG04I7ZqlYTrEz42ksuBmpdT3SaVMzuNwGBz2oAomJWXPY1C9ucZQ/gah0u68+1UM3I4zmp7iBXjY+Y4IHBDYoA0tKmLWTcghGKgHrV3fKIyY+AT1PWszSFWDT44wfmJJLZ55PetRWCOSjAqVKg//WoAjsQ974ggVzvCc/hWrr0ryamIYzjagU/jzVXwuqy6tPMWGVXinX12HvLhty5LlcjrgUAVY1mSMhWwCcHPpSo8yYRh8u786YkqORG7ckce9K88WECu2zjdmgCeYkYZiODyKrhgZAN20dScU/5SdyngkgnNR7lk3qpjIwDuIwaAJ1KFyQ4wTjmnyEKhBZcocjNVYBCMiT5ucdcVJIkLynLDKnqtAEu6RWyDkFQTgHFKRJIG8xcepJxUKmUSGMHKAZGT2py3GWIJzkc4P5UAEyMqhnyV9j1phZmVFQHBboTinF2TDMwIyCvvmoneMNw21icg9s96ALWnP5GsNDKV8q5BRtpyM9qjnt5IZ3jkI3IT0Paq8hDxF0Khh86leOhrUvFN/aW9/CBvkTDg+ooAz2tgSHD8g8bT0obJj5Ubz97moxdbZdrjkHJw3SpWuZHjYY4z69OKAIF8xl3YwAMAjtSBGCdM55x60ryh0xlcnpUuwyFdgyMYPOKAAlyFCxbVI4XPX6VZ0pXGoW5IwpkHUVTlco3LrlBge1XNMDtqFszyDG8fKKAO0ooooAKKKKAEpaKKACiiigApKKKAD0ooooAWiiigBKUUUUAIaXtRRQAUUUUAFFFFABRRRQAUlFFAC0goooAKKKKADtS0UUAFIe1FFAC0UUUAf//Z\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":44548,"title":"ASCII sum of phrases","description":"Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array:\r\n[77   121    32   110    97   109   101    32   105   115    32   116   101   115   116] i.e. 1379","description_html":"\u003cp\u003eFind the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array:\r\n[77   121    32   110    97   109   101    32   105   115    32   116   101   115   116] i.e. 1379\u003c/p\u003e","function_template":"function y = str_to_number(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 'Tilda : ~';\r\ny_correct = 742;\r\nassert(isequal(str_to_number(x),742))\r\n%%\r\nx = 'Practise more';\r\ny_correct = 1294;\r\nassert(isequal(str_to_number(x),1294))\r\n%%\r\nx = '1 last test';\r\ny_correct = 997;\r\nassert(isequal(str_to_number(x),997))\r\n%%\r\nx = 'OK, Definitely the last!';\r\ny_correct = 997;\r\nassert(isequal(str_to_number(x),2121))","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":50,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2018-04-02T16:01:56.000Z","updated_at":"2026-03-02T09:04:48.000Z","published_at":"2018-04-02T16:01: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\u003eFind the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', the result should be a sum of the array: [77 121 32 110 97 109 101 32 105 115 32 116 101 115 116] i.e. 1379\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":42927,"title":"Corresponding ASCII code.","description":"Given the number, the output will show the corresponding ASCII code.","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: 21px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 10.5px; transform-origin: 407px 10.5px; 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 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: 219px 8px; transform-origin: 219px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven the number, the output will show the corresponding ASCII code.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = ....;\r\nend","test_suite":"%%\r\nx = 98;\r\ny_correct = 'b';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 7*11;\r\ny_correct = 'M';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 10^2;\r\ny_correct = 'd';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = max(primes(102));\r\ny_correct = 'e';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = factorial(5);\r\ny_correct = 'x';\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n%%\r\nx = 3^4;\r\ny_correct = 'Q';\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":27348,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":106,"test_suite_updated_at":"2021-07-01T17:59:05.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-08-26T17:15:48.000Z","updated_at":"2026-03-31T09:46:37.000Z","published_at":"2016-08-26T17:15: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\u003eGiven the number, the output will show the corresponding ASCII code.\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":2216,"title":"Given an input string, generate a variable name out of it ","description":"Given an input string, generate a variable name out of it in easy to read format by a programmer.\r\nIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\r\nExample\r\n input = 'this is an input var'\r\n output = 'thisIsAnInputVar'\r\nAnother example\r\n input = 'this one has special char @123'\r\n output = 'thisOneHasSpecialChar_123'","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: 234.733px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 117.367px; transform-origin: 407px 117.367px; 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: 304.5px 8px; transform-origin: 304.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven an input string, generate a variable name out of it in easy to read format by a programmer.\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: 378px 8px; transform-origin: 378px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\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: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; 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 20.4333px; transform-origin: 404px 20.4333px; 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: 124px 8.5px; tab-size: 4; transform-origin: 124px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 36px 8.5px; transform-origin: 36px 8.5px; \"\u003e input = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 88px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 88px 8.5px; \"\u003e'this is an input var'\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: 112px 8.5px; tab-size: 4; transform-origin: 112px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 40px 8.5px; transform-origin: 40px 8.5px; \"\u003e output = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 72px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 72px 8.5px; \"\u003e'thisIsAnInputVar'\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: 53px 8px; transform-origin: 53px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAnother example\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; 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 20.4333px; transform-origin: 404px 20.4333px; 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: 164px 8.5px; tab-size: 4; transform-origin: 164px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 36px 8.5px; transform-origin: 36px 8.5px; \"\u003e input = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 128px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 128px 8.5px; \"\u003e'this one has special char @123'\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: 148px 8.5px; tab-size: 4; transform-origin: 148px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 40px 8.5px; transform-origin: 40px 8.5px; \"\u003e output = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 108px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 108px 8.5px; \"\u003e'thisOneHasSpecialChar_123'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = InputVarName(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx= 'this is an input var';\r\ny_correct = 'thisIsAnInputVar';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'this one has special char @123';\r\ny_correct = 'thisOneHasSpecialChar_123';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'RealInput Variable !!';\r\ny_correct = 'RealInputVariable__';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n%%\r\nx= 'This^is^fun^23^45^too';\r\ny_correct = 'This_is_fun_23_45_too';\r\nassert(isequal(InputVarName(x),y_correct));\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":5,"created_by":16381,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":29,"test_suite_updated_at":"2021-08-27T10:07:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-24T18:09:38.000Z","updated_at":"2021-08-27T10:07:22.000Z","published_at":"2014-02-24T20:59:58.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\u003eGiven an input string, generate a variable name out of it in easy to read format by a 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\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.\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\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 = 'this is an input var'\\n output = 'thisIsAnInputVar']]\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\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[ input = 'this one has special char @123'\\n output = 'thisOneHasSpecialChar_123']]\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":44380,"title":"ASCII Birthday Cake","description":"Given an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\r\n\r\n   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\r\n\r\nThis uses the \u003chttps://www.mathworks.com/help/matlab/ref/string.html string datatype\u003e, not a char array.","description_html":"\u003cp\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \"CODY\" and the age 5, return a string with the following (no trailing spaces)\u003c/p\u003e\u003cpre\u003e   6 6 6 6 6\r\n   | | | | |\r\n __|_|_|_|_|__\r\n{             }\r\n{             }\r\n{    CODY     }\r\n{             }\r\n{_____________}\u003c/pre\u003e\u003cp\u003eThis uses the \u003ca href = \"https://www.mathworks.com/help/matlab/ref/string.html\"\u003estring datatype\u003c/a\u003e, not a char array.\u003c/p\u003e","function_template":"function s = birthday_cake(name, n)\r\n    s = \"\";\r\n    s = s + \"name\";\r\nend","test_suite":"%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 67 79 68 89 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"CODY\", 5), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 64 98 109 116 114 97 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"@bmtran\", 29), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 77 65 84 76 65 66 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"MATLAB\", 33), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 67 108 101 118 101 32 77 111 108 101 114 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Cleve Moler\", 78), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 65 108 97 110 32 84 117 114 105 110 103 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Alan Turing\", 105), cake));\r\n\r\n%%\r\ncake = string(char([32 32 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 32 54 10 32 32 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 32 124 10 32 95 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 124 95 95 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 83 105 114 32 73 115 97 97 99 32 78 101 119 116 111 110 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 125 10 123 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 125 10]));\r\nfprintf('%s\\n', cake);\r\nassert(isequal(birthday_cake(\"Sir Isaac Newton\", 375), cake));","published":true,"deleted":false,"likes_count":10,"comments_count":4,"created_by":134,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":227,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":34,"created_at":"2017-10-12T19:48:13.000Z","updated_at":"2026-03-25T05:11:31.000Z","published_at":"2017-10-16T01:45:10.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\u003eGiven an age and a name, give draw an ASCII birthday cake. For example, given the name \\\"CODY\\\" and the age 5, return a string with the following (no trailing spaces)\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[   6 6 6 6 6\\n   | | | | |\\n __|_|_|_|_|__\\n{             }\\n{             }\\n{    CODY     }\\n{             }\\n{_____________}]]\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\u003eThis uses the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/ref/string.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring datatype\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, not a char array.\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":1199,"title":"ASCII art","description":"Convert a grayscale image to ASCII\r\n\r\n\u003c\u003chttp://www.alfnie.com/software/cameraman.jpg\u003e\u003e\r\n\r\n\r\n*Inputs:*\r\n\r\n* *img*: Grayscale image (a matrix of values between 0 and 1)\r\n* *chars*: Char array of valid ascii characters\r\n* *bitmap*: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\r\n\r\n*Output:*\r\n\r\nBin the original image _img_ into segments of size _Height x Width_, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values). \r\n\r\nReturn the fitted ascii image: a matrix of characters in *chars* that, when displayed, approximates the image *img*.\r\n\r\n\r\n                                                                         \r\n                              _____                                      \r\n                             QQÊÊÊÊþ¿_                                   \r\n                            gÊÊÊÊÊÊÊÊÊþ                                  \r\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\r\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ®½g                        `````\r\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q©ÑmM                     ``````\r\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ©Ñ ÊÊÊÊÊQ____g                   ` ````\r\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\r\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\r\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\r\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\r\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\r\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\r\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\r\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\r\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\r\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\r\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\r\nÑÑÑÑ©¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\r\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\r\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g©ÑÑÑÊÊÑÑ\r\nÑ»©QQÿ©©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`©ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ©©ÑÑÑÑÑÊÊÊÊÊ\r\nÑ©©ÑÑÑ©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\r\n©`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê ©Q©©Ñ»²©©ÑÊþQQQQQQQQQQQQ©©©©©©©©QQ\r\n©©Q©©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ©©©©ÊÊÊ°QQÊ Q©Q©QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\r\n©Ü©©^»²©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»©»©Î»»Q¸ÜÊþQÑÑ©©ÑÑ©©©©ÜÑÑÑÑÑÑÑÑÑ\r\n©»»»QQÑ©Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»©©»¸¨²²²©©Ñ©Ñh¯Ê_©»QQÑ©ÑÑQÑQÑÑÑÑÑÑÑÑQ\r\n©QQîQ©»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ©QQÑQQQ©Î^QÎÑQQQ©ÑÊþ©©ÑÑ©Ñ©Ñ©ÑÑÑÑQQQQQQ\r\nÑ©ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ©Q»ÎÎ»½©¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\r\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ©ÑÑQQÑÑ©©©Ñ»½©©©©©QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\r\nÑQQÑQ©Ñ©©ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯©QQ©Ñ©©ÿ©©ÑÑ©ÿÑ½½ÑÑ½ÑÑq ýÿ©QÑ©Ñ©ÑÑ©©ÑÑÑ©Q\r\nÑÜj©Q©QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ©©©©Q° »Q©©Î©Q©QQQ©ÑÑÑQÎ©ÑÑ©Ñ©ÑÀ`ÑÑÑÑÑÑ©ÑÑÑÑÑÑÜQQ\r\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ©©Ê ¸ÑÑ©©©Q©ÑQÑQ©ÑQÑÑ©QÑÑÑQQÑÑ¿³ÑÑÑÑ©ÑÑÑÑÑÑQÑQÑ\r\n©ÑÑÑQÑQ©ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ©ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ©ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ\r\n\r\n\r\n*note*: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\r\n\r\n fontsize=6;\r\n figure;\r\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\r\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\r\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);\r\n\r\nand edit the value _fontsize_ so that the image fits within the figure.\r\n","description_html":"\u003cp\u003eConvert a grayscale image to ASCII\u003c/p\u003e\u003cimg src=\"http://www.alfnie.com/software/cameraman.jpg\"\u003e\u003cp\u003e\u003cb\u003eInputs:\u003c/b\u003e\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cb\u003eimg\u003c/b\u003e: Grayscale image (a matrix of values between 0 and 1)\u003c/li\u003e\u003cli\u003e\u003cb\u003echars\u003c/b\u003e: Char array of valid ascii characters\u003c/li\u003e\u003cli\u003e\u003cb\u003ebitmap\u003c/b\u003e: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\u003c/li\u003e\u003c/ul\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e\u003c/p\u003e\u003cp\u003eBin the original image \u003ci\u003eimg\u003c/i\u003e into segments of size \u003ci\u003eHeight x Width\u003c/i\u003e, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values).\u003c/p\u003e\u003cp\u003eReturn the fitted ascii image: a matrix of characters in \u003cb\u003echars\u003c/b\u003e that, when displayed, approximates the image \u003cb\u003eimg\u003c/b\u003e.\u003c/p\u003e\u003cpre\u003e                              _____                                      \r\n                             QQÊÊÊÊþ¿_                                   \r\n                            gÊÊÊÊÊÊÊÊÊþ                                  \r\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\r\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ®½g                        `````\r\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q©ÑmM                     ``````\r\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ©Ñ ÊÊÊÊÊQ____g                   ` ````\r\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\r\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\r\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\r\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\r\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\r\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\r\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\r\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\r\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\r\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\r\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\r\nÑÑÑÑ©¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\r\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\r\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g©ÑÑÑÊÊÑÑ\r\nÑ»©QQÿ©©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`©ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ©©ÑÑÑÑÑÊÊÊÊÊ\r\nÑ©©ÑÑÑ©QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\r\n©`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê ©Q©©Ñ»²©©ÑÊþQQQQQQQQQQQQ©©©©©©©©QQ\r\n©©Q©©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ©©©©ÊÊÊ°QQÊ Q©Q©QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\r\n©Ü©©^»²©ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»©»©Î»»Q¸ÜÊþQÑÑ©©ÑÑ©©©©ÜÑÑÑÑÑÑÑÑÑ\r\n©»»»QQÑ©Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»©©»¸¨²²²©©Ñ©Ñh¯Ê_©»QQÑ©ÑÑQÑQÑÑÑÑÑÑÑÑQ\r\n©QQîQ©»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ©QQÑQQQ©Î^QÎÑQQQ©ÑÊþ©©ÑÑ©Ñ©Ñ©ÑÑÑÑQQQQQQ\r\nÑ©ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ©Q»ÎÎ»½©¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\r\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ©ÑÑQQÑÑ©©©Ñ»½©©©©©QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\r\nÑQQÑQ©Ñ©©ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯©QQ©Ñ©©ÿ©©ÑÑ©ÿÑ½½ÑÑ½ÑÑq ýÿ©QÑ©Ñ©ÑÑ©©ÑÑÑ©Q\r\nÑÜj©Q©QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ©©©©Q° »Q©©Î©Q©QQQ©ÑÑÑQÎ©ÑÑ©Ñ©ÑÀ`ÑÑÑÑÑÑ©ÑÑÑÑÑÑÜQQ\r\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ©©Ê ¸ÑÑ©©©Q©ÑQÑQ©ÑQÑÑ©QÑÑÑQQÑÑ¿³ÑÑÑÑ©ÑÑÑÑÑÑQÑQÑ\r\n©ÑÑÑQÑQ©ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ©ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ©ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ\u003c/pre\u003e\u003cp\u003e\u003cb\u003enote\u003c/b\u003e: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\u003c/p\u003e\u003cpre\u003e fontsize=6;\r\n figure;\r\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\r\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\r\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);\u003c/pre\u003e\u003cp\u003eand edit the value \u003ci\u003efontsize\u003c/i\u003e so that the image fits within the figure.\u003c/p\u003e","function_template":"function str = gray2char(img,chars,bitmap)\r\n  str=' :) ';\r\nend\r\n","test_suite":"%%\r\nchars=char([32:126,161:255]);\r\nbitmap=mean(double(imread('http://www.alfnie.com/software/monobitmap.bmp'))/255,3);\r\nbitmap=reshape(bitmap,size(bitmap,1),[],numel(chars));\r\n\r\nimg=imread('peppers.png');\r\nimg=sqrt(mean(double(img)/256,3));\r\nimg=img(1:floor(size(img,1)/size(bitmap,1))*size(bitmap,1),1:floor(size(img,2)/size(bitmap,2))*size(bitmap,2));\r\n\r\nstr=gray2char(img,chars,bitmap)\r\n\r\nassert(isequal(size(str),[14 36]));\r\n[i,loc]=ismember(str,chars);\r\nassert(all(all(i)));\r\nimg=permute(reshape(img,size(bitmap,1),size(img,1)/size(bitmap,1),size(bitmap,2),size(img,2)/size(bitmap,2)),[1,3,2,4]);\r\nd=mean(mean(mean(abs(bitmap(:,:,loc)-img(:,:,:)).^2,3),2),1);\r\nassert(d\u003c=0.11);\r\n\r\n%%\r\nchars=char([32:126,161:255]);\r\nbitmap=mean(double(imread('http://www.alfnie.com/software/monobitmap.bmp'))/255,3);\r\nbitmap=reshape(bitmap,size(bitmap,1),[],numel(chars));\r\n\r\nimg=load('clown.mat');\r\nimg=mean(ind2rgb(img.X,img.map),3);\r\nimg=double(img(ceil(.25:.25:end),ceil(.25:.25:end))).^.25;\r\nimg=img(1:floor(size(img,1)/size(bitmap,1))*size(bitmap,1),1:floor(size(img,2)/size(bitmap,2))*size(bitmap,2));\r\n\r\nstr=gray2char(img,chars,bitmap)\r\n\r\nassert(isequal(size(str),[30 91]));\r\n[i,loc]=ismember(str,chars);\r\nassert(all(all(i)));\r\nimg=permute(reshape(img,size(bitmap,1),size(img,1)/size(bitmap,1),size(bitmap,2),size(img,2)/size(bitmap,2)),[1,3,2,4]);\r\nd=mean(mean(mean(abs(bitmap(:,:,loc)-img(:,:,:)).^2,3),2),1);\r\nassert(d\u003c=0.172);\r\n\r\n","published":true,"deleted":false,"likes_count":4,"comments_count":0,"created_by":43,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":"2014-05-07T01:58:02.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-12T04:48:09.000Z","updated_at":"2014-05-07T01:58:02.000Z","published_at":"2013-01-12T07:10: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\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/media/image1.JPEG\"}],\"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\u003eConvert a grayscale image to ASCII\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:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"-1\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"-1\\\"/\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\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\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eimg\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Grayscale image (a matrix of values between 0 and 1)\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003echars\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Char array of valid ascii characters\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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ebitmap\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: Grayscale images of each valid ascii character (3d matrix with size Height x Width x N, and with values between 0 and 1)\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\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\u003eBin the original image\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\u003eimg\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e into segments of size\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\u003eHeight x Width\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, and find the best matching ascii character for each bin (minimizing the euclidean distance between each bin grayscale values and the matching character grayscale values).\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 the fitted ascii image: a matrix of characters in\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\u003echars\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e that, when displayed, approximates the image\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\u003eimg\u003c/w:t\u003e\u003c/w:r\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=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[                              _____                                      \\n                             QQÊÊÊÊþ¿_                                   \\n                            gÊÊÊÊÊÊÊÊÊþ                                  \\n                           qÊÊÊÊÊÊÊÑÑÊÊg_                              ``\\n                          _ÊÊÊþÎÊÊ ¾ºÜÑÑÑ\u0026reg;½g                        `````\\n                   gQQQQQØÊÊÊÑÊQQ¸ ¸»gÊÃ@Q\u0026copy;ÑmM                     ``````\\n                 _ØÊÊÊÊÊÊÊÊÊþ°ÑÊÊQ\u0026copy;Ñ ÊÊÊÊÊQ____g                   ` ````\\n               _gÊÊÊÊÊÊÊÊÊÊÊÊQQQÊÊÊ  ÎÊÊÊQÊþ¯¯¯¯                     ````\\n             gØÊÊÊÊÊÊÊÊÊÊÊÊÊÊþÊÊÊÊÑ×,_ÎÊÎ¯ÊÊÊ                         ```\\n           _ØÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊQgÊÊ`¯°  ¸QÊ                       `````;\\n          gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊgÊÊÊÊþ_¿__gÊ¯                       ` `;»»\\n         ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÊÊÊÊÊÊÊÊÊÊÊÊ_                       ````»»\\n          ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊØÊÊÊÊÊÊÊÊ_ÿ_ÑÊÊÃ           ³³^            `»»\\n           ¯ÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊÊÑþ           ·              ```»\\n             ÆÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÊ ÊÑÊþ           ·              ```»\\n             ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯ÑÊÊÊÊ    Êþ                          `;»\\n            gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ  qÊÃÊ `  QÊþ         ·         :`    ```\\nQgQ¿¸      gÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ   ÊÑ Ê ` qÑÑÊÿ        ·        ;``    `:`\\nÑÑÑÑ\u0026copy;¸  ¸ qÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ¯  qÊÎ Î ¨ ÑÑîÑÊ¸       ·      »»¨² ` ¸¸¸¸¸\\nQQQ¿ggQQÊQÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÃ »»qþþ Î » . ,¡Êþ_¿¿q»¿ jQ_`         _QQÿgQ\\nÑÑÑÑÑÑÑÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑÑÑÑÊQÑÊÑ_ÎÑQQQQjÊþþÊÑþQQÊÊÊÊg¿_  _g\u0026copy;ÑÑÑÊÊÑÑ\\nÑ»\u0026copy;QQÿ\u0026copy;\u0026copy;QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ°``¨qÊfQÊýÑQþ`\u0026copy;ÑÜÑÑÊþÊÑQÊÑÑÑÑÑÊÑÑ\u0026copy;\u0026copy;ÑÑÑÑÑÊÊÊÊÊ\\nÑ\u0026copy;\u0026copy;ÑÑÑ\u0026copy;QÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÜÎ»¯ÊÑÑÿ.Ê ÎÎÑ»¯ÜÜÎÑÊþÎÎÎ²²²¨²¨²²»»»»ÎÎÎÎÎÎÎÑ\\n\u0026copy;`²Î¨ÎÎÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ»»»qÊQÿ »Ê \u0026copy;Q\u0026copy;\u0026copy;Ñ»²\u0026copy;\u0026copy;ÑÊþQQQQQQQQQQQQ\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;QQ\\n\u0026copy;\u0026copy;Q\u0026copy;\u0026copy;ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ\u0026copy;\u0026copy;\u0026copy;\u0026copy;ÊÊÊ°QQÊ Q\u0026copy;Q\u0026copy;QQQ¿ÜÑÊþÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ\\n\u0026copy;Ü\u0026copy;\u0026copy;^»²\u0026copy;ÑÑÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÑ¸¨¸QÊMÃ¿QQÑ Ñ»\u0026copy;»\u0026copy;Î»»Q¸ÜÊþQÑÑ\u0026copy;\u0026copy;ÑÑ\u0026copy;\u0026copy;\u0026copy;\u0026copy;ÜÑÑÑÑÑÑÑÑÑ\\n\u0026copy;»»»QQÑ\u0026copy;Î»ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊ»»»ÎØÑ³;Ñ»\u0026copy;\u0026copy;»¸¨²²²\u0026copy;\u0026copy;Ñ\u0026copy;Ñh¯Ê_\u0026copy;»QQÑ\u0026copy;ÑÑQÑQÑÑÑÑÑÑÑÑQ\\n\u0026copy;QQîQ\u0026copy;»Q;»ÊÊÑÊÊÊÊÊÊÊÊÊÊÊÊÑQQ¿_ÊÃÊÜ\u0026copy;QQÑQQQ\u0026copy;Î^QÎÑQQQ\u0026copy;ÑÊþ\u0026copy;\u0026copy;ÑÑ\u0026copy;Ñ\u0026copy;Ñ\u0026copy;ÑÑÑÑQQQQQQ\\nÑ\u0026copy;ÜÑÎÎÜÎÎÜÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊQQÑÑQÊ½ÑÑÑÑQQQQ\u0026copy;Q»ÎÎ»½\u0026copy;¯Ñ¨²ÑÊQÎÎÜÑÑÑÑÑÑÑÑQÑÑÑÑÑÑ\\nÑÑÜÑÑÑÑÑÎQÊÊÊÊÊÊÑÊÊÊÊÊÊÊÑÑÑÑÑÑÊ#Ñ\u0026copy;ÑÑQQÑÑ\u0026copy;\u0026copy;\u0026copy;Ñ»½\u0026copy;\u0026copy;\u0026copy;\u0026copy;\u0026copy;QQÊÑ½ÑÑÑÑÑÑQÑÑÜÑQÑÑÑÑÑ\\nÑQQÑQ\u0026copy;Ñ\u0026copy;\u0026copy;ÑÊÊÊÊÊÊÑÊÑÊÊÊÊÑ½»ÑÑÑÎ ¯\u0026copy;QQ\u0026copy;Ñ\u0026copy;\u0026copy;ÿ\u0026copy;\u0026copy;ÑÑ\u0026copy;ÿÑ½½ÑÑ½ÑÑq ýÿ\u0026copy;QÑ\u0026copy;Ñ\u0026copy;ÑÑ\u0026copy;\u0026copy;ÑÑÑ\u0026copy;Q\\nÑÜj\u0026copy;Q\u0026copy;QÎQQÊÊÊÊÊÊ¿ÊÊÊÊÊÊÑ\u0026copy;\u0026copy;\u0026copy;\u0026copy;Q° »Q\u0026copy;\u0026copy;Î\u0026copy;Q\u0026copy;QQQ\u0026copy;ÑÑÑQÎ\u0026copy;ÑÑ\u0026copy;Ñ\u0026copy;ÑÀ`ÑÑÑÑÑÑ\u0026copy;ÑÑÑÑÑÑÜQQ\\nQQÑ3ÑQQÑÑQÊÊÊÊÊÑ2QÊÊÊÊÊþQQ\u0026copy;\u0026copy;Ê ¸ÑÑ\u0026copy;\u0026copy;\u0026copy;Q\u0026copy;ÑQÑQ\u0026copy;ÑQÑÑ\u0026copy;QÑÑÑQQÑÑ¿³ÑÑÑÑ\u0026copy;ÑÑÑÑÑÑQÑQÑ\\n\u0026copy;ÑÑÑQÑQ\u0026copy;ÑQÊÊÊÊÊQÿÑÊÊÑÑÊÊÑÑQÑÊ ÎQ\u0026copy;ÑÑQÑÜÑÑQÑÑÜÑÑQQQÿQQÑ\u0026copy;ÑQÑ¿ÎQQÿQQÑQÊÑÑQÑQÑ]]\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\u003enote\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e: for an appropriate display the display font needs to be monospace. If a char image does not fit within the command window, you may try the following to display it on a figure:\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[ fontsize=6;\\n figure;\\n uicontrol('style','text','units','norm','position',[0,0,1,1],'string',str,...\\n 'fontweight','bold','horizontalalignment','left','fontname','monospaced',...\\n 'foregroundcolor','k','backgroundcolor','w','fontsize',fontsize);]]\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 edit the value\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\u003efontsize\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e so that the image fits within the figure.\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\"},{\"partUri\":\"/media/image1.JPEG\",\"contentType\":\"image/JPEG\",\"content\":\"data:image/JPEG;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAEDAQQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL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KrhgZAN20dScU/5SdyngkgnNR7lk3qpjIwDuIwaAJ1KFyQ4wTjmnyEKhBZcocjNVYBCMiT5ucdcVJIkLynLDKnqtAEu6RWyDkFQTgHFKRJIG8xcepJxUKmUSGMHKAZGT2py3GWIJzkc4P5UAEyMqhnyV9j1phZmVFQHBboTinF2TDMwIyCvvmoneMNw21icg9s96ALWnP5GsNDKV8q5BRtpyM9qjnt5IZ3jkI3IT0Paq8hDxF0Khh86leOhrUvFN/aW9/CBvkTDg+ooAz2tgSHD8g8bT0obJj5Ubz97moxdbZdrjkHJw3SpWuZHjYY4z69OKAIF8xl3YwAMAjtSBGCdM55x60ryh0xlcnpUuwyFdgyMYPOKAAlyFCxbVI4XPX6VZ0pXGoW5IwpkHUVTlco3LrlBge1XNMDtqFszyDG8fKKAO0ooooAKKKKAEpaKKACiiigApKKKAD0ooooAWiiigBKUUUUAIaXtRRQAUUUUAFFFFABRRRQAUlFFAC0goooAKKKKADtS0UUAFIe1FFAC0UUUAf//Z\"}]}"}],"term":"tag:\"ascii\"","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:\"ascii\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"ascii\"","","\"","ascii","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f534ae78a20\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f534ae78980\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f534ae77a80\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f534ae78e80\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f534ae78de0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f534ae78c00\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f534ae78b60\u003e":"tag:\"ascii\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f534ae78b60\u003e":"tag:\"ascii\""},"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":"search","password":"J3bGPZzQ7asjJcCk","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:\"ascii\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"ascii\"","","\"","ascii","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f534ae78a20\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f534ae78980\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f534ae77a80\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f534ae78e80\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f534ae78de0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f534ae78c00\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f534ae78b60\u003e":"tag:\"ascii\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f534ae78b60\u003e":"tag:\"ascii\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":44548,"difficulty_rating":"easy"},{"id":42927,"difficulty_rating":"easy"},{"id":2216,"difficulty_rating":"easy-medium"},{"id":44380,"difficulty_rating":"medium"},{"id":1199,"difficulty_rating":"medium-hard"}]}}