{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2026-05-26T00:16:20.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2026-05-26T00: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":1723,"title":"Square wave average calculation","description":"Given its peak and duty cycle, calculate avg value of square wave","description_html":"\u003cp\u003eGiven its peak and duty cycle, calculate avg value of square wave\u003c/p\u003e","function_template":"function avg = your_fcn_name(peak,duty)\r\n  y = x;\r\nend","test_suite":"%%\r\npeak = 5;\r\nduty = 0.6\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(peak,duty),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":14448,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":131,"test_suite_updated_at":"2013-07-18T07:04:09.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-18T07:01:55.000Z","updated_at":"2026-03-09T20:58:01.000Z","published_at":"2013-07-18T07:04:09.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 its peak and duty cycle, calculate avg value of square wave\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":1724,"title":"Calculate the peak value of square wave","description":"Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.","description_html":"\u003cp\u003eGiven the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 230;\r\ny_correct = 324;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = 325;\r\ny_correct = 458;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":14448,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":89,"test_suite_updated_at":"2013-07-18T10:48:23.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-18T10:44:16.000Z","updated_at":"2026-03-09T20:58:32.000Z","published_at":"2013-07-18T10:48:23.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"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 the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.\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":42688,"title":"Determine the full width at half max","description":"Determine the full width at half max of a curve.\r\n\r\nThe  full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak. \u003chttps://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003e \r\n\r\nIt is defined as the distance between the two points at which the curve reaches half of its maximum value.\r\nFor example if y = [0 3 6 3 0], the full width at half of y is 2.\r\n\r\n\r\nThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\r\n","description_html":"\u003cp\u003eDetermine the full width at half max of a curve.\u003c/p\u003e\u003cp\u003eThe  full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak. \u003ca href = \"https://en.wikipedia.org/wiki/Full_width_at_half_maximum\"\u003ehttps://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003c/a\u003e\u003c/p\u003e\u003cp\u003eIt is defined as the distance between the two points at which the curve reaches half of its maximum value.\r\nFor example if y = [0 3 6 3 0], the full width at half of y is 2.\u003c/p\u003e\u003cp\u003eThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\u003c/p\u003e","function_template":"function F = fwhm(y)\r\nF = numel(y);\r\nend\r\n","test_suite":"%% 1\r\ny = [0 1 2 3 4 3 2 1 0];\r\nF = 4;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 2\r\ny = [0, 1:10, 9:-1:1, 0];\r\nF = 10;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 3\r\ny = [0 1 1 1 1 0]';\r\nF = 4;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 4\r\ny = [zeros(1,3),ones(1,10),zeros(1,5)];\r\nF = 10;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 5\r\nfor i = 1:200\r\n  maxX = randi(10) + 10;\r\n  F = rand*4+1;\r\n  x = -maxX:maxX;\r\n  y = exp(-4*log(2)*x.^2/F^2);\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\nend\r\n\r\n%%\r\nuser_solution = fileread('fwhm.m');\r\nassert(isempty(strfind(user_solution,'regexp')));\r\nassert(isempty(strfind(user_solution,'num2str')));\r\nassert(isempty(strfind(user_solution,'fprintf')));\r\nassert(isempty(strfind(user_solution,'assert')));\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":55263,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":"2015-11-22T07:43:27.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-11-21T09:09:43.000Z","updated_at":"2026-05-28T14:42:23.000Z","published_at":"2015-11-21T09:20:02.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\u003eDetermine the full width at half max of a curve.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak.\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://en.wikipedia.org/wiki/Full_width_at_half_maximum\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIt is defined as the distance between the two points at which the curve reaches half of its maximum value. For example if y = [0 3 6 3 0], the full width at half of y is 2.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\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":{"problems":[{"id":1723,"title":"Square wave average calculation","description":"Given its peak and duty cycle, calculate avg value of square wave","description_html":"\u003cp\u003eGiven its peak and duty cycle, calculate avg value of square wave\u003c/p\u003e","function_template":"function avg = your_fcn_name(peak,duty)\r\n  y = x;\r\nend","test_suite":"%%\r\npeak = 5;\r\nduty = 0.6\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(peak,duty),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":14448,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":131,"test_suite_updated_at":"2013-07-18T07:04:09.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-18T07:01:55.000Z","updated_at":"2026-03-09T20:58:01.000Z","published_at":"2013-07-18T07:04:09.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 its peak and duty cycle, calculate avg value of square wave\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":1724,"title":"Calculate the peak value of square wave","description":"Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.","description_html":"\u003cp\u003eGiven the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.\u003c/p\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 230;\r\ny_correct = 324;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = 325;\r\ny_correct = 458;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":14448,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":89,"test_suite_updated_at":"2013-07-18T10:48:23.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-18T10:44:16.000Z","updated_at":"2026-03-09T20:58:32.000Z","published_at":"2013-07-18T10:48:23.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"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 the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.\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":42688,"title":"Determine the full width at half max","description":"Determine the full width at half max of a curve.\r\n\r\nThe  full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak. \u003chttps://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003e \r\n\r\nIt is defined as the distance between the two points at which the curve reaches half of its maximum value.\r\nFor example if y = [0 3 6 3 0], the full width at half of y is 2.\r\n\r\n\r\nThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\r\n","description_html":"\u003cp\u003eDetermine the full width at half max of a curve.\u003c/p\u003e\u003cp\u003eThe  full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak. \u003ca href = \"https://en.wikipedia.org/wiki/Full_width_at_half_maximum\"\u003ehttps://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003c/a\u003e\u003c/p\u003e\u003cp\u003eIt is defined as the distance between the two points at which the curve reaches half of its maximum value.\r\nFor example if y = [0 3 6 3 0], the full width at half of y is 2.\u003c/p\u003e\u003cp\u003eThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\u003c/p\u003e","function_template":"function F = fwhm(y)\r\nF = numel(y);\r\nend\r\n","test_suite":"%% 1\r\ny = [0 1 2 3 4 3 2 1 0];\r\nF = 4;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 2\r\ny = [0, 1:10, 9:-1:1, 0];\r\nF = 10;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 3\r\ny = [0 1 1 1 1 0]';\r\nF = 4;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 4\r\ny = [zeros(1,3),ones(1,10),zeros(1,5)];\r\nF = 10;\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\n\r\n%% 5\r\nfor i = 1:200\r\n  maxX = randi(10) + 10;\r\n  F = rand*4+1;\r\n  x = -maxX:maxX;\r\n  y = exp(-4*log(2)*x.^2/F^2);\r\nassert(abs((fwhm(y)-F)/F)\u003c0.1)\r\nend\r\n\r\n%%\r\nuser_solution = fileread('fwhm.m');\r\nassert(isempty(strfind(user_solution,'regexp')));\r\nassert(isempty(strfind(user_solution,'num2str')));\r\nassert(isempty(strfind(user_solution,'fprintf')));\r\nassert(isempty(strfind(user_solution,'assert')));\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":2,"created_by":55263,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":"2015-11-22T07:43:27.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-11-21T09:09:43.000Z","updated_at":"2026-05-28T14:42:23.000Z","published_at":"2015-11-21T09:20:02.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\u003eDetermine the full width at half max of a curve.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak.\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://en.wikipedia.org/wiki/Full_width_at_half_maximum\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://en.wikipedia.org/wiki/Full_width_at_half_maximum\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIt is defined as the distance between the two points at which the curve reaches half of its maximum value. For example if y = [0 3 6 3 0], the full width at half of y is 2.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.\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\"}]}"}],"errors":[],"facets":[[],[{"value":"easy","count":2,"selected":false},{"value":"medium","count":1,"selected":false}]],"term":"tag:\"peak\"","page":1,"per_page":50,"sort":"map(difficulty_value,0,0,999) asc"}}