{"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":45242,"title":"String to Binary Representation","description":"Given a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example:\r\nInput: 'abc', goes to [97 98 99], and then \r\nOuput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];","description_html":"\u003cp\u003eGiven a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example:\r\nInput: 'abc', goes to [97 98 99], and then \r\nOuput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];\u003c/p\u003e","function_template":"function Output = message2binary(message)\r\n  Output = message;\r\nend","test_suite":"%%\r\nmessage = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\ny_correct='00001010101001101111011000001110001101101010011000000100111011100001011011110110000001001100111010101110110001101100011010100110101001100010011000000100000101101000011001101110101001100000010010110110111101101011011010100110011101100010111010101110101101100111010000000100001010100001011010100110000001001011011011110110010011101010011000000100001011100001011010100110100111100000010011001110101011101100011011000110101001101010011000100110001101000000010000101110000101101010011000000100101101101111011001001110101001100000010000101110000101101010011010011110000001001110111010000110011101100010111000000100001011101111011000000100110011101010111011000110110001101010011010100110001001100000010010000110011101100010011000000100001011100001011010100110000001001011011011110110010011101010011000000100001011100001011010100110100111100000010001100110100101100111011000100110000001001000011000000100111011101000011010011110000001000010111011110110000001001100111010101110110001101100011010100110101001100010011001110100000001001100101010010110101101101001011000110110100001100100111000110110100111100011010000000100111011100001011010100110011101100000010011001110111101101011011010100110111101100111011010100110000001001001011011001110000001000110011010000110100101100011011010010110011101101110011000110100000001000010111000010110101001100000010000101110101001100111011000100110101001100111011011000110100111100000010010010110110011100000010000101110111101100000010011100110101001100010111000000100111101100111011000000100100001100000010000100110111101101110111001110110111011101000011001001110001001100000010011001110000011101001011001001110100001100011011000000100001011100001011010000110001011100000010011000110100001100111011000000100101001100110111010100110011101100000010001000110101001101100011011110110101101101010011000000100100001100000010011001110101001100011011001100110101101000110011010101110001101100110011010010110001101100011011010010110011101101110011000000100000011100100111011110110000011100001011010100110110001101001111001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods.';\r\ny_correct='011000101001011001001110110011100010111000110100000001000001011010000110011011101010011000000100100001100000010000100110101001100110011010010110011101101001011000101110101001100011010000000100110001100011011010100110100001100100111000000100000011100100111010000110110001100010111010010110110001101000011000110110000001001001011000100110101001101000011000110110110111000000010010000110000001001110011011110110100001100011011000110100000001001000011001110110000001001111011001000110010101101010011011000110001011101001011001101110101001100111010000000100110010101010011011000110111101100111011000100110001101000000010000010110100001100110111010100110000001000010111000010110101001100000010001110110101001101100011010100110110011101100111010000110010011101001111000000100101101101010011010000110011101101100111000000100001011101111011000000100100001101100011000010110100101101010011001101110101001100000010010011110111101101010111001001110000001001010011001110110001001101100111011011100000001001110111010010110110011100010011011110110101101100011010000000100101101101111011001110110101001101001111000110100000001001011011010000110001011101010011001001110100101101000011000110110110011100011010000000100100001100111011000100110000001001011011010100110001011100001011011110110001001101100111001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'I do not know what I may appear to the world, but to myself I seem to have been only like a boy playing on the seashore, and diverting myself in now and then finding a smoother pebble or a prettier shell than ordinary, whilst the great ocean of truth lay all undiscovered before me.';\r\ny_correct='100100100000010000100110111101100000010001110110111101100010111000000100110101100111011011110110111011100000010011101110000101101000011000101110000001001001001000000100101101101000011010011110000001001000011000001110000011101010011010000110010011100000010000101110111101100000010000101110000101101010011000000100111011101111011001001110001101100010011000110100000001000100011010101110001011100000010000101110111101100000010010110110100111101100111010100110001101100110011000000100100100100000010011001110101001101010011010110110000001000010111011110110000001000001011010000110011011101010011000000100010001101010011010100110011101100000010011110110011101100011011010011110000001000011011010010110110101101010011000000100100001100000010001000110111101101001111000000100000011100011011010000110100111101001011001110110111001100000010011110110011101100000010000101110000101101010011000000100110011101010011010000110110011100001011011110110010011101010011000110100000001001000011001110110001001100000010000100110100101100110111010100110010011100010111010010110011101101110011000000100101101101001111011001110101001100011011001100110000001001001011001110110000001000111011011110110111011100000010010000110011101100010011000000100001011100001011010100110011101100000010001100110100101100111011000100110100101100111011011100110000001001000011000000100110011101011011011110110111101100010111000010110101001100100111000000100000011101010011001000110010001100011011010100110000001001111011001001110000001001000011000000100000011100100111010100110001011100010111010010110101001100100111000000100110011100001011010100110001101100011011000000100001011100001011010000110011101100000010011110110010011100010011010010110011101101000011001001110100111100011010000000100111011100001011010010110001101101100111000101110000001000010111000010110101001100000010011100110010011101010011010000110001011100000010011110110110001101010011010000110011101100000010011110110011001100000010000101110010011101010111000101110000101100000010000110110100001101001111000000100100001100011011000110110000001001010111001110110001001101001011011001110110001101111011001101110101001100100111010100110001001100000010001000110101001100110011011110110010011101010011000000100101101101010011001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'As I considered the matter carefully it gradually came to light that all those matters only were referred to mathematics in which order and measurements are investigated, and that it makes no difference whether it be in numbers, figures, stars, sounds or any other object that the question of measurement arises. I saw consequently that there must be some general science to explain that element as a whole which gives rise to problems about order and measurement, restricted as these are to no special subject matter. This, I perceived was called \"universal mathematics\".';\r\ny_correct='1000001011001110000001001001001000000100110001101111011001110110110011101001011000100110101001100100111010100110001001100000010000101110000101101010011000000100101101101000011000101110001011101010011001001110000001001100011010000110010011101010011001100110101011100011011000110110100111100000010010010110001011100000010011100110010011101000011000100110101011101000011000110110001101101001111000000100110001101000011010110110101001100000010000101110111101100000010000110110100101101110011000010110001011100000010000101110000101101000011000101110000001001000011000110110001101100000010000101110000101101111011011001110101001100000010010110110100001100010111000101110101001100100111011001110000001001111011001110110001101101001111000000100111011101010011001001110101001100000010001001110101001100110011010100110010011100100111010100110001001100000010000101110111101100000010010110110100001100010111000010110101001101011011010000110001011101001011011000110110011100000010010010110011101100000010011101110000101101001011011000110000101100000010011110110010011100010011010100110010011100000010010000110011101100010011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111011001110000001001000011001001110101001100000010010010110011101100110111010100110110011100010111010010110111001101000011000101110101001100010011000110100000001001000011001110110001001100000010000101110000101101000011000101110000001001001011000101110000001001011011010000110110101101010011011001110000001000111011011110110000001000010011010010110011001100110011010100110010011101010011001110110110001101010011000000100111011100001011010100110001011100001011010100110010011100000010010010110001011100000010001000110101001100000010010010110011101100000010001110110101011101011011001000110101001100100111011001110001101000000010001100110100101101110011010101110010011101010011011001110001101000000010011001110001011101000011001001110110011100011010000000100110011101111011010101110011101100010011011001110000001001111011001001110000001001000011001110110100111100000010011110110001011100001011010100110010011100000010011110110010001100101011010100110110001100010111000000100001011100001011010000110001011100000010000101110000101101010011000000100100011101010111010100110110011100010111010010110111101100111011000000100111101100110011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111000000100100001100100111010010110110011101010011011001110011101000000010010010010000001001100111010000110111011100000010011000110111101100111011011001110101001101000111010101110101001100111011000101110001101101001111000000100001011100001011010000110001011100000010000101110000101101010011001001110101001100000010010110110101011101100111000101110000001000100011010100110000001001100111011110110101101101010011000000100111001101010011001110110101001100100111010000110001101100000010011001110110001101001011010100110011101101100011010100110000001000010111011110110000001001010011000011110000011100011011010000110100101100111011000000100001011100001011010000110001011100000010010100110001101101010011010110110101001100111011000101110000001001000011011001110000001001000011000000100111011100001011011110110001101101010011000000100111011100001011010010110110001100001011000000100111001101001011001101110101001101100111000000100010011101001011011001110101001100000010000101110111101100000010000001110010011101111011001000110001101101010011010110110110011100000010010000110010001101111011010101110001011100000010011110110010011100010011010100110010011100000010010000110011101100010011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111000110100000001000100111010100110110011100010111001001110100101101100011000101110101001100010011000000100100001101100111000000100001011100001011010100110110011101010011000000100100001100100111010100110000001000010111011110110000001000111011011110110000001001100111000001110101001101100011010010110100001100011011000000100110011101010111001000110010101101010011011000110001011100000010010110110100001100010111000101110101001100100111001110100000001000010101000010110100101101100111000110100000001001001001000000100000011101010011001001110110001101010011010010110011011101010011000100110000001001110111010000110110011100000010011000110100001100011011000110110101001100010011000000100010001001010111001110110100101100110111010100110010011101100111010000110001101100000010010110110100001100010111000010110101001101011011010000110001011101001011011000110110011100100010001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-12-23T03:03:00.000Z","updated_at":"2026-01-09T07:13:47.000Z","published_at":"2019-12-23T03:16:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example: Input: 'abc', goes to [97 98 99], and then Ouput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":45242,"title":"String to Binary Representation","description":"Given a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example:\r\nInput: 'abc', goes to [97 98 99], and then \r\nOuput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];","description_html":"\u003cp\u003eGiven a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example:\r\nInput: 'abc', goes to [97 98 99], and then \r\nOuput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];\u003c/p\u003e","function_template":"function Output = message2binary(message)\r\n  Output = message;\r\nend","test_suite":"%%\r\nmessage = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\ny_correct='00001010101001101111011000001110001101101010011000000100111011100001011011110110000001001100111010101110110001101100011010100110101001100010011000000100000101101000011001101110101001100000010010110110111101101011011010100110011101100010111010101110101101100111010000000100001010100001011010100110000001001011011011110110010011101010011000000100001011100001011010100110100111100000010011001110101011101100011011000110101001101010011000100110001101000000010000101110000101101010011000000100101101101111011001001110101001100000010000101110000101101010011010011110000001001110111010000110011101100010111000000100001011101111011000000100110011101010111011000110110001101010011010100110001001100000010010000110011101100010011000000100001011100001011010100110000001001011011011110110010011101010011000000100001011100001011010100110100111100000010001100110100101100111011000100110000001001000011000000100111011101000011010011110000001000010111011110110000001001100111010101110110001101100011010100110101001100010011001110100000001001100101010010110101101101001011000110110100001100100111000110110100111100011010000000100111011100001011010100110011101100000010011001110111101101011011010100110111101100111011010100110000001001001011011001110000001000110011010000110100101100011011010010110011101101110011000110100000001000010111000010110101001100000010000101110101001100111011000100110101001100111011011000110100111100000010010010110110011100000010000101110111101100000010011100110101001100010111000000100111101100111011000000100100001100000010000100110111101101110111001110110111011101000011001001110001001100000010011001110000011101001011001001110100001100011011000000100001011100001011010000110001011100000010011000110100001100111011000000100101001100110111010100110011101100000010001000110101001101100011011110110101101101010011000000100100001100000010011001110101001100011011001100110101101000110011010101110001101100110011010010110001101100011011010010110011101101110011000000100000011100100111011110110000011100001011010100110110001101001111001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods.';\r\ny_correct='011000101001011001001110110011100010111000110100000001000001011010000110011011101010011000000100100001100000010000100110101001100110011010010110011101101001011000101110101001100011010000000100110001100011011010100110100001100100111000000100000011100100111010000110110001100010111010010110110001101000011000110110000001001001011000100110101001101000011000110110110111000000010010000110000001001110011011110110100001100011011000110100000001001000011001110110000001001111011001000110010101101010011011000110001011101001011001101110101001100111010000000100110010101010011011000110111101100111011000100110001101000000010000010110100001100110111010100110000001000010111000010110101001100000010001110110101001101100011010100110110011101100111010000110010011101001111000000100101101101010011010000110011101101100111000000100001011101111011000000100100001101100011000010110100101101010011001101110101001100000010010011110111101101010111001001110000001001010011001110110001001101100111011011100000001001110111010010110110011100010011011110110101101100011010000000100101101101111011001110110101001101001111000110100000001001011011010000110001011101010011001001110100101101000011000110110110011100011010000000100100001100111011000100110000001001011011010100110001011100001011011110110001001101100111001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'I do not know what I may appear to the world, but to myself I seem to have been only like a boy playing on the seashore, and diverting myself in now and then finding a smoother pebble or a prettier shell than ordinary, whilst the great ocean of truth lay all undiscovered before me.';\r\ny_correct='100100100000010000100110111101100000010001110110111101100010111000000100110101100111011011110110111011100000010011101110000101101000011000101110000001001001001000000100101101101000011010011110000001001000011000001110000011101010011010000110010011100000010000101110111101100000010000101110000101101010011000000100111011101111011001001110001101100010011000110100000001000100011010101110001011100000010000101110111101100000010010110110100111101100111010100110001101100110011000000100100100100000010011001110101001101010011010110110000001000010111011110110000001000001011010000110011011101010011000000100010001101010011010100110011101100000010011110110011101100011011010011110000001000011011010010110110101101010011000000100100001100000010001000110111101101001111000000100000011100011011010000110100111101001011001110110111001100000010011110110011101100000010000101110000101101010011000000100110011101010011010000110110011100001011011110110010011101010011000110100000001001000011001110110001001100000010000100110100101100110111010100110010011100010111010010110011101101110011000000100101101101001111011001110101001100011011001100110000001001001011001110110000001000111011011110110111011100000010010000110011101100010011000000100001011100001011010100110011101100000010001100110100101100111011000100110100101100111011011100110000001001000011000000100110011101011011011110110111101100010111000010110101001100100111000000100000011101010011001000110010001100011011010100110000001001111011001001110000001001000011000000100000011100100111010100110001011100010111010010110101001100100111000000100110011100001011010100110001101100011011000000100001011100001011010000110011101100000010011110110010011100010011010010110011101101000011001001110100111100011010000000100111011100001011010010110001101101100111000101110000001000010111000010110101001100000010011100110010011101010011010000110001011100000010011110110110001101010011010000110011101100000010011110110011001100000010000101110010011101010111000101110000101100000010000110110100001101001111000000100100001100011011000110110000001001010111001110110001001101001011011001110110001101111011001101110101001100100111010100110001001100000010001000110101001100110011011110110010011101010011000000100101101101010011001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n%%\r\nmessage = 'As I considered the matter carefully it gradually came to light that all those matters only were referred to mathematics in which order and measurements are investigated, and that it makes no difference whether it be in numbers, figures, stars, sounds or any other object that the question of measurement arises. I saw consequently that there must be some general science to explain that element as a whole which gives rise to problems about order and measurement, restricted as these are to no special subject matter. This, I perceived was called \"universal mathematics\".';\r\ny_correct='1000001011001110000001001001001000000100110001101111011001110110110011101001011000100110101001100100111010100110001001100000010000101110000101101010011000000100101101101000011000101110001011101010011001001110000001001100011010000110010011101010011001100110101011100011011000110110100111100000010010010110001011100000010011100110010011101000011000100110101011101000011000110110001101101001111000000100110001101000011010110110101001100000010000101110111101100000010000110110100101101110011000010110001011100000010000101110000101101000011000101110000001001000011000110110001101100000010000101110000101101111011011001110101001100000010010110110100001100010111000101110101001100100111011001110000001001111011001110110001101101001111000000100111011101010011001001110101001100000010001001110101001100110011010100110010011100100111010100110001001100000010000101110111101100000010010110110100001100010111000010110101001101011011010000110001011101001011011000110110011100000010010010110011101100000010011101110000101101001011011000110000101100000010011110110010011100010011010100110010011100000010010000110011101100010011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111011001110000001001000011001001110101001100000010010010110011101100110111010100110110011100010111010010110111001101000011000101110101001100010011000110100000001001000011001110110001001100000010000101110000101101000011000101110000001001001011000101110000001001011011010000110110101101010011011001110000001000111011011110110000001000010011010010110011001100110011010100110010011101010011001110110110001101010011000000100111011100001011010100110001011100001011010100110010011100000010010010110001011100000010001000110101001100000010010010110011101100000010001110110101011101011011001000110101001100100111011001110001101000000010001100110100101101110011010101110010011101010011011001110001101000000010011001110001011101000011001001110110011100011010000000100110011101111011010101110011101100010011011001110000001001111011001001110000001001000011001110110100111100000010011110110001011100001011010100110010011100000010011110110010001100101011010100110110001100010111000000100001011100001011010000110001011100000010000101110000101101010011000000100100011101010111010100110110011100010111010010110111101100111011000000100111101100110011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111000000100100001100100111010010110110011101010011011001110011101000000010010010010000001001100111010000110111011100000010011000110111101100111011011001110101001101000111010101110101001100111011000101110001101101001111000000100001011100001011010000110001011100000010000101110000101101010011001001110101001100000010010110110101011101100111000101110000001000100011010100110000001001100111011110110101101101010011000000100111001101010011001110110101001100100111010000110001101100000010011001110110001101001011010100110011101101100011010100110000001000010111011110110000001001010011000011110000011100011011010000110100101100111011000000100001011100001011010000110001011100000010010100110001101101010011010110110101001100111011000101110000001001000011011001110000001001000011000000100111011100001011011110110001101101010011000000100111011100001011010010110110001100001011000000100111001101001011001101110101001101100111000000100010011101001011011001110101001100000010000101110111101100000010000001110010011101111011001000110001101101010011010110110110011100000010010000110010001101111011010101110001011100000010011110110010011100010011010100110010011100000010010000110011101100010011000000100101101101010011010000110110011101010111001001110101001101011011010100110011101100010111000110100000001000100111010100110110011100010111001001110100101101100011000101110101001100010011000000100100001101100111000000100001011100001011010100110110011101010011000000100100001100100111010100110000001000010111011110110000001000111011011110110000001001100111000001110101001101100011010010110100001100011011000000100110011101010111001000110010101101010011011000110001011100000010010110110100001100010111000101110101001100100111001110100000001000010101000010110100101101100111000110100000001001001001000000100000011101010011001001110110001101010011010010110011011101010011000100110000001001110111010000110110011100000010011000110100001100011011000110110101001100010011000000100010001001010111001110110100101100110111010100110010011101100111010000110001101100000010010110110100001100010111000010110101001101011011010000110001011101001011011000110110011100100010001110100';\r\nassert(isequal(message2binary(message),y_correct-48))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2019-12-23T03:03:00.000Z","updated_at":"2026-01-09T07:13:47.000Z","published_at":"2019-12-23T03:16:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example: Input: 'abc', goes to [97 98 99], and then Ouput: [1 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"strings to binary\"","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:\"strings to binary\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"strings to binary\"","","\"","strings to binary","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f1943bba838\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f1943bba798\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f1943bb9ed8\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f1943bbaab8\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f1943bbaa18\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f1943bba978\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f1943bba8d8\u003e":"tag:\"strings to binary\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f1943bba8d8\u003e":"tag:\"strings to binary\""},"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:\"strings to binary\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"strings to binary\"","","\"","strings to binary","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f1943bba838\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f1943bba798\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f1943bb9ed8\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f1943bbaab8\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f1943bbaa18\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f1943bba978\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f1943bba8d8\u003e":"tag:\"strings to binary\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f1943bba8d8\u003e":"tag:\"strings to binary\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":45242,"difficulty_rating":"easy-medium"}]}}