{"id":374,"date":"2022-09-15T06:31:52","date_gmt":"2022-09-15T10:31:52","guid":{"rendered":"https:\/\/blogs.mathworks.com\/matlab\/?p=374"},"modified":"2022-11-01T11:34:01","modified_gmt":"2022-11-01T15:34:01","slug":"an-introduction-to-dictionaries-associative-arrays-in-matlab","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/matlab\/2022\/09\/15\/an-introduction-to-dictionaries-associative-arrays-in-matlab\/","title":{"rendered":"An introduction to dictionaries (associative arrays) in MATLAB"},"content":{"rendered":"<div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; ' id = 'H_BB4D1764' ><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/dictionary.html\"><span>Dictionaries<\/span><\/a><span> are one of the many new features of MATLAB R2022b which was released yesterday.  Today I'll take a look at some of the details of this new datatype in MATLAB.<\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_3AACA97F' ><span>A dictionary is a collection of key-value pairs.<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>A <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.html\"><span>dictionary<\/span><\/a><span> (also known as an <\/span><a href = \"https:\/\/en.wikipedia.org\/wiki\/Associative_array\"><span>associative array<\/span><\/a><span> in some programming languages), is a collection of key-value pairs where each unique key maps onto a value.  For example, imagine I am keeping track of the weight of three people called Mike, Dave and Bob and I want to use a dictionary called <\/span><span style=' font-family: monospace;'>gym<\/span><span> to do this.  How would I create this in MATLAB?<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/matlab\/files\/2022\/09\/Dictionary2022b_1.png\" width = \"375\" height = \"207\" alt = \"\" style = \"vertical-align: baseline; width: 375px; height: 207px;\"><\/img><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >names = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"Mike\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Dave\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >weights = [89,75,68]; <\/span><span style=\"color: rgb(0, 128, 19);\">% weight in kilograms<\/span><\/span><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym = dictionary(names,weights) <\/span><span style=\"color: rgb(0, 128, 19);\">% Vectorised constructor. Performs elementwise mapping.<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"8181582E\" prevent-scroll=\"true\" data-testid=\"output_0\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 3 entries:\r\n\r\n    \"Mike\" \u27fc 89\r\n    \"Dave\" \u27fc 75\r\n    \"Bob\"  \u27fc 68\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Now I have this dictionary object, I can look up the weight of any entry by supplying the relevant key, which in this case is a person's name.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Dave\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 75<\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 68<\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This look-up operation, which relies on unique keys rather than position, is the key (no pun intended!) to the usefulness of dictionaries.  They are completely optimised for fast look-up and do so in constant time (or O(1) if you are familiar with <\/span><a href = \"https:\/\/en.wikipedia.org\/wiki\/Big_O_notation\"><span>big O notation<\/span><\/a><span>) which essentially means that it's as fast to look up an item in a 10 element dictionary as it is in a 10 million element dictionary (in theory at least!). <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>It is vital to understand that <\/span><span style=' font-weight: bold;'>keys in a dictionary are unique<\/span><span>.  If I make another assignment to \"Bob\" in this dictionary, it will overwrite the value that \"Bob\" used to map to rather than creating a second entry called \"Bob\".  <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>There can be only one of each key! <\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >)=110<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"782CDEB6\" prevent-scroll=\"true\" data-testid=\"output_3\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 3 entries:\r\n\r\n    \"Mike\" \u27fc 89\r\n    \"Dave\" \u27fc 75\r\n    \"Bob\"  \u27fc 110\r\n<\/div><\/div><\/div><\/div><\/div><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_77D9E531' ><span style=' font-weight: bold;'>What if a key does not exist in a dictionary?<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We can check to see if a key exists in a dictionary using the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.iskey.html\"><span style=' font-family: monospace;'>isKey()<\/span><\/a><span> function. For example, the key <\/span><span style=' font-family: monospace;'>\"Michelle\"<\/span><span> does not exist in the dictionary <\/span><span style=' font-family: monospace;'>gym<\/span><span> and this is confirmed by <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.iskey.html\"><span style=' font-family: monospace;'>isKey()<\/span><\/a><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >isKey(gym,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Michelle\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"D03D53CB\" prevent-scroll=\"true\" data-testid=\"output_4\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">ans = <span class=\"headerElement\" style=\"white-space: pre; font-style: italic; color: rgb(179, 179, 179); font-size: 12px;\">logical<\/span><\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">   0\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Attempting to look up a key that does not exist results in an error.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Michelle\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsErrorElement\" uid=\"936D8E01\" prevent-scroll=\"true\" data-testid=\"output_5\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"diagnosticMessage-wrapper diagnosticMessage-errorType eoOutputContent\" data-width=\"1116\" data-height=\"32\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: normal; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><div class=\"diagnosticMessage-messagePart\" style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">Error using  () <br style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">Key not found.<\/div><div class=\"diagnosticMessage-stackPart\" style=\"white-space: pre; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>However, assigning to a key that does not exist will insert that key-value pair into the dictionary and return the result. <\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Michelle\"<\/span><span >) = 70<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"269946D4\" prevent-scroll=\"true\" data-testid=\"output_6\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"108\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 4 entries:\r\n\r\n    \"Mike\"     \u27fc 89\r\n    \"Dave\"     \u27fc 75\r\n    \"Bob\"      \u27fc 110\r\n    \"Michelle\" \u27fc 70\r\n<\/div><\/div><\/div><\/div><\/div><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_4AE75244' ><span style=' font-weight: bold;'>Returning all of the keys and values of a dictionary<\/span><span> as arrays<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We can get all of the keys out of a dictionary using the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.keys.html\"><span style=' font-family: monospace;'>keys<\/span><\/a><span> function.  In this case, since our keys were strings, the result is an <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/string.html\"><span>array of strings<\/span><\/a><span>.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gymkeys = keys(gym)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsTextMatrixElement embeddedOutputsVariableMatrixElement\" uid=\"FD47A6EA\" prevent-scroll=\"true\" data-testid=\"output_7\" data-width=\"1116\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"matrixElement veSpecifier saveLoad eoOutputContent\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"veVariableName variableNameElement\" style=\"width: 1116px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"headerElementClickToInteract\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gymkeys = <\/span><span class=\"veVariableValueSummary headerElement\" style=\"white-space: normal; font-style: normal; color: rgb(179, 179, 179); font-size: 12px;\">4\u00d71 string<\/span><\/div><\/div><div class=\"valueContainer\" data-layout=\"{&quot;totalRows&quot;:&quot;4&quot;,&quot;totalColumns&quot;:&quot;1&quot;}\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"variableValue\" style=\"width: 82px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">\"Mike\"       <br>\"Dave\"       <br>\"Bob\"        <br>\"Michelle\"   <br><\/div><div class=\"horizontalEllipsis hide\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"verticalEllipsis hide\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Similary, we get an array of <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.values.html\"><span style=' font-family: monospace;'>values<\/span><\/a><span> as follows<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gymvalues = values(gym)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableMatrixElement\" uid=\"74CEFCBA\" prevent-scroll=\"true\" data-testid=\"output_8\" data-width=\"1116\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"matrixElement veSpecifier saveLoad eoOutputContent\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"veVariableName variableNameElement double\" style=\"width: 1116px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"headerElementClickToInteract\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gymvalues = <\/span><span class=\"veVariableValueSummary veMetaSummary\" style=\"white-space: normal; font-style: normal; color: rgb(179, 179, 179); font-size: 12px;\">4\u00d71<\/span><\/div><\/div><div class=\"valueContainer\" data-layout=\"{&quot;columnWidth&quot;:40,&quot;totalColumns&quot;:&quot;1&quot;,&quot;totalRows&quot;:&quot;4&quot;,&quot;charsPerColumn&quot;:6}\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"variableValue\" style=\"width: 42px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">    89\r\n    75\r\n   110\r\n    70\r\n<\/div><div class=\"horizontalEllipsis hide\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"verticalEllipsis hide\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Note that each element of the <\/span><span style=' font-family: monospace;'>gymkeys<\/span><span> array corresponds to each element of the <\/span><span style=' font-family: monospace;'>gymvalues<\/span><span> array.  For example, \"Bob\" is the 3rd element of <\/span><span style=' font-family: monospace;'>gymkeys<\/span><span> and his weight is the 3rd element of <\/span><span style=' font-family: monospace;'>gymvalues<\/span><span>.  Furthermore, <\/span><span style=' font-weight: bold;'>keys and values are returned in the same order that they were inserted into the dictionary<\/span><span>.  In theory, a dictionary is an unordered object but in MATLAB's implementation, insertion order is maintained. <\/span><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_7805BCA0' ><span>3 ways of creating dictionaries in MATLAB<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>There are currently three ways of creating a dictionary in MATLAB.  We've already seen the first one, which is a very MATLAB-y, vectorised way of doing it.  The idea is to create an array of keys then an array of values and pass them both to <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.html\"><span style=' font-family: monospace;'>dictionary()<\/span><\/a><span> which then forms a dictionary from the set of elementwise pairs. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'>Vectorised dictionary creation<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >fruits = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"Apple\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Pear\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Banana\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >colours = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"Red\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Green\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Yellow\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d1 = dictionary(fruits,colours)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"68B17978\" prevent-scroll=\"true\" data-testid=\"output_9\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d1 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 3 entries:\r\n\r\n    \"Apple\"  \u27fc \"Red\"\r\n    \"Pear\"   \u27fc \"Green\"\r\n    \"Banana\" \u27fc \"Yellow\"\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'>Dictionary creation using interleaved keys and values<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>An alternative method is to interleave keys and values like this<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d2 = dictionary(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Apple\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Red\"<\/span><span >, <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"Pear\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Green\"<\/span><span >, <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"Banana\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Yellow\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"F04CC1F7\" prevent-scroll=\"true\" data-testid=\"output_10\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d2 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 3 entries:\r\n\r\n    \"Apple\"  \u27fc \"Red\"\r\n    \"Pear\"   \u27fc \"Green\"\r\n    \"Banana\" \u27fc \"Yellow\"\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The line breaks were just for readability, I could just have easily done this:<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d2 = dictionary(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Apple\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Red\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Pear\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Green\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Banana\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Yellow\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"F5715E97\" prevent-scroll=\"true\" data-testid=\"output_11\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d2 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 3 entries:\r\n\r\n    \"Apple\"  \u27fc \"Red\"\r\n    \"Pear\"   \u27fc \"Green\"\r\n    \"Banana\" \u27fc \"Yellow\"\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'>Dictionary creation starting from an empty dictionary<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The final method is to start with an empty dictionary<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d3 = dictionary()<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"970F81BE\" prevent-scroll=\"true\" data-testid=\"output_12\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d3 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary with unset key and value types.\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>and then add key-value pairs, one at a time<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d3(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Apple\"<\/span><span >) = <\/span><span style=\"color: rgb(167, 9, 245);\">\"Red\"<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"474734EC\" prevent-scroll=\"true\" data-testid=\"output_13\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"64\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d3 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 1 entry:\r\n\r\n    \"Apple\" \u27fc \"Red\"\r\n<\/div><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d3(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Pear\"<\/span><span >) = <\/span><span style=\"color: rgb(167, 9, 245);\">\"Green\"<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"4B7AB019\" prevent-scroll=\"true\" data-testid=\"output_14\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"79\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d3 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 2 entries:\r\n\r\n    \"Apple\" \u27fc \"Red\"\r\n    \"Pear\"  \u27fc \"Green\"\r\n<\/div><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d3(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Banana\"<\/span><span >) = <\/span><span style=\"color: rgb(167, 9, 245);\">\"Yellow\"<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"DA207A2F\" prevent-scroll=\"true\" data-testid=\"output_15\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d3 = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 3 entries:\r\n\r\n    \"Apple\"  \u27fc \"Red\"\r\n    \"Pear\"   \u27fc \"Green\"\r\n    \"Banana\" \u27fc \"Yellow\"\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>All of these methods give equivalent results although performance might vary.<\/span><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_EE7F4E17' ><span>Counting the number of entries in a dictionary: (Hint - You don't use numel)<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>To return the number of entries in a dictionary, we use the new <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.numentries.html\"><span style=' font-family: monospace;'>numEntries()<\/span><\/a><span> function<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >numEntries(d3)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 3<\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>When I first starting using dictionaries in MATLAB, I tried to use <\/span><span style=' font-family: monospace;'>numel<\/span><span> instead and was rather suprised by the result<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >numel(d3)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 1<\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>I actually reported this as a bug when I used early versions of dictionary but its all consistent. The thinking here is that you only have one dictionary, <\/span><span style=' font-family: monospace;'>d3<\/span><span>, which itself contains the entries.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>To expand on this a little further, MathWorks think that the <\/span><span style=' font-family: monospace;'>size<\/span><span>, <\/span><span style=' font-family: monospace;'>numel<\/span><span>, <\/span><span style=' font-family: monospace;'>isempty<\/span><span>, indexing, and <\/span><span style=' font-family: monospace;'>cat<\/span><span> functions should be consistent and follow normal MATLAB array behavior. This isn't possible with dictionary since the set of entries doesn't have a shape and duplicate values overwrite.<\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_F952A21A' ><span>More about empty dictionaries: isConfigured()<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Let's look closer at an empty dictionary.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >newDict = dictionary()<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"C23DCE46\" prevent-scroll=\"true\" data-testid=\"output_18\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">newDict = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary with unset key and value types.\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Not only is <\/span><span style=' font-family: monospace;'>newDict <\/span><span>empty but the key and value types are both unset.  We say that this dictionary is both <\/span><span style=' font-weight: bold;'>empty<\/span><span> and <\/span><span style=' font-weight: bold;'>unconfigured<\/span><span>. We can check configuration status using the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.isconfigured.html\"><span style=' font-family: monospace;'>isConfigured()<\/span><\/a><span> function.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >isConfigured(newDict)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"F855BB31\" prevent-scroll=\"true\" data-testid=\"output_19\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">ans = <span class=\"headerElement\" style=\"white-space: pre; font-style: italic; color: rgb(179, 179, 179); font-size: 12px;\">logical<\/span><\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">   0\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>You may ask \"Why does this matter?\".  Well, there are certain things you can't do with unconfigured dictionaries.  You can't ask if a key exists for example<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >isKey(newDict,<\/span><span style=\"color: rgb(167, 9, 245);\">\"SomeKey\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsErrorElement\" uid=\"7BCF6663\" prevent-scroll=\"true\" data-testid=\"output_20\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"diagnosticMessage-wrapper diagnosticMessage-errorType eoOutputContent\" data-width=\"1116\" data-height=\"46\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: normal; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><div class=\"diagnosticMessage-messagePart\" style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">Error using isKey<br style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">Unable to perform a lookup in a dictionary with unset key and value types. Add<br style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">entries to the dictionary.<\/div><div class=\"diagnosticMessage-stackPart\" style=\"white-space: pre; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; ' id = 'H_2D79A5B6' ><span>To configure an empty dictionary in R2022b, you simply add an entry. <\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; ' id = 'H_89F416B5' ><span style=\"white-space: pre\"><span >newDict(datetime(<\/span><span style=\"color: rgb(167, 9, 245);\">\"06-Sep-2022\"<\/span><span >)) = <\/span><span style=\"color: rgb(167, 9, 245);\">\"today\"<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"6B24CD52\" prevent-scroll=\"true\" data-testid=\"output_21\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"64\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">newDict = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">datetime<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong>) with 1 entry:\r\n\r\n    06-Sep-2022 \u27fc \"today\"\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This has added a single entry and configured new<\/span><span style=' font-family: monospace;'>Dict<\/span><span> dictionary so that its keys are of type <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/datetime.html\"><span>datetime<\/span><\/a><span> and values are of type string. <\/span><span style=' font-family: monospace;'>isConfigured<\/span><span> now returns true.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >isConfigured(newDict)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"B6F2C7B5\" prevent-scroll=\"true\" data-testid=\"output_22\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">ans = <span class=\"headerElement\" style=\"white-space: pre; font-style: italic; color: rgb(179, 179, 179); font-size: 12px;\">logical<\/span><\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">   1\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The next question you might ask is, <\/span><span style=' font-weight: bold;'>how can I have an empty but configured dictionary?<\/span><span>  In R2022b, the answer is to create the dictionary with empty arrays of the types you want<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >emptyAndConfigured = dictionary(string.empty,double.empty)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"B6EAA756\" prevent-scroll=\"true\" data-testid=\"output_23\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">emptyAndConfigured = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with no entries.\r\n<\/div><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >isConfigured(emptyAndConfigured)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"C46304AE\" prevent-scroll=\"true\" data-testid=\"output_24\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"35\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">ans = <span class=\"headerElement\" style=\"white-space: pre; font-style: italic; color: rgb(179, 179, 179); font-size: 12px;\">logical<\/span><\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">   1\r\n<\/div><\/div><\/div><\/div><\/div><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_B3455033' ><span style=' font-weight: bold;'>Dictionaries are vectorised<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>\"Of course they are vectorised, this is MATLAB!\" was the answer I got from development when I asked the question. Let's see what this means.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We've already seen <\/span><span style=' font-weight: bold;'>vectorised construction of dictionaries<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >names = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"Mike\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Dave\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >weights = [89,75,68]; <\/span><span style=\"color: rgb(0, 128, 19);\">% weight in kilograms<\/span><\/span><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym = dictionary(names,weights) <\/span><span style=\"color: rgb(0, 128, 19);\">% Vectorised constructor. Performs elementwise mapping.<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"598EB7D7\" prevent-scroll=\"true\" data-testid=\"output_25\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 3 entries:\r\n\r\n    \"Mike\" \u27fc 89\r\n    \"Dave\" \u27fc 75\r\n    \"Bob\"  \u27fc 68\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We can also perform <\/span><span style=' font-weight: bold;'>vectorised assignment<\/span><span>. Let's change Mike's and Bob's weights simultaneously<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym([<\/span><span style=\"color: rgb(167, 9, 245);\">\"Mike\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >]) = [80,73]<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"9AE27E69\" prevent-scroll=\"true\" data-testid=\"output_26\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"94\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 3 entries:\r\n\r\n    \"Mike\" \u27fc 80\r\n    \"Dave\" \u27fc 75\r\n    \"Bob\"  \u27fc 73\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'>Scalar expansion<\/span><span> also works.  Two twins join the gym and since they have the same weight, I only need to supply the value once<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym([<\/span><span style=\"color: rgb(167, 9, 245);\">\"Twin 1\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Twin 2\"<\/span><span >]) = 100<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement\" uid=\"C18F3E40\" prevent-scroll=\"true\" data-testid=\"output_27\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"123\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">gym = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 5 entries:\r\n\r\n    \"Mike\"   \u27fc 80\r\n    \"Dave\"   \u27fc 75\r\n    \"Bob\"    \u27fc 73\r\n    \"Twin 1\" \u27fc 100\r\n    \"Twin 2\" \u27fc 100\r\n<\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; ' id = 'H_C788B55A' ><span>It's also possible to do <\/span><span style=' font-weight: bold;'>vectorised look up<\/span><span>.  The shape of the returned values array will be the same as the same of the keys queries<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym([<\/span><span style=\"color: rgb(167, 9, 245);\">\"Mike\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >;<\/span><span style=\"color: rgb(167, 9, 245);\">\"Twin 1\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Dave\"<\/span><span >])<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableMatrixElement\" uid=\"FFD970AA\" prevent-scroll=\"true\" data-testid=\"output_28\" data-width=\"1116\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"matrixElement veSpecifier saveLoad eoOutputContent\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"veVariableName variableNameElement double\" style=\"width: 1116px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"headerElementClickToInteract\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">ans = <\/span><span class=\"veVariableValueSummary veMetaSummary\" style=\"white-space: normal; font-style: normal; color: rgb(179, 179, 179); font-size: 12px;\">2\u00d72<\/span><\/div><\/div><div class=\"valueContainer\" data-layout=\"{&quot;columnWidth&quot;:40,&quot;totalColumns&quot;:&quot;2&quot;,&quot;totalRows&quot;:&quot;2&quot;,&quot;charsPerColumn&quot;:6}\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"variableValue\" style=\"width: 82px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">    80    73\r\n   100    75\r\n<\/div><div class=\"horizontalEllipsis hide\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"verticalEllipsis hide\" style=\"white-space: nowrap; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\" style=\"white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This naturally leads to the question: <\/span><span style=' font-weight: bold;'>\"What happens if any one of the input keys does not exist?\". <\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gym([<\/span><span style=\"color: rgb(167, 9, 245);\">\"Mike\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Bob\"<\/span><span >;<\/span><span style=\"color: rgb(167, 9, 245);\">\"DoesNotExist\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">\"Dave\"<\/span><span >])<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsErrorElement\" uid=\"A3B7A585\" prevent-scroll=\"true\" data-testid=\"output_29\" style=\"width: 1146px; white-space: normal; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"diagnosticMessage-wrapper diagnosticMessage-errorType eoOutputContent\" data-width=\"1116\" data-height=\"17\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: normal; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><div class=\"diagnosticMessage-messagePart\" style=\"white-space: pre-wrap; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\">Element 2 of the key array not found.<\/div><div class=\"diagnosticMessage-stackPart\" style=\"white-space: pre; font-style: normal; color: rgb(183, 49, 44); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We get an error and no results are returned.<\/span><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_5102828E' ><span style=' font-weight: bold;'>Exporting and converting dictionaries<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Like many other MATLAB objects, dictionaries can be serialised in a .mat file. All you need to do is <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/save.html\"><span>save<\/span><\/a><span> it as you would a matrix or whatever<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span style=\"color: rgb(0, 128, 19);\">%Save the dictionary called gym to a file called mydictionary.mat<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px 0px 4px 4px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >save(<\/span><span style=\"color: rgb(167, 9, 245);\">\"mydictionary\"<\/span><span >,<\/span><span style=\"color: rgb(167, 9, 245);\">'gym'<\/span><span >)<\/span><\/span><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>If you wanted to export your dictionary to a .csv file, the workflow is to first convert it to a table and then export that.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/dictionary.entries.html\"><span style=' font-family: monospace;'>entries<\/span><\/a><span> function provides conversion functionality from dictionaries to tables, structures or cells.  Here, we use a table.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >gymTable = entries(gym,<\/span><span style=\"color: rgb(167, 9, 245);\">\"table\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableTableElement\" uid=\"408AC579\" prevent-scroll=\"true\" data-testid=\"output_30\" style=\"width: calc(100% - 5px);\"><div class=\"ClientDocument veSpecifier table\" id=\"variableeditor_client_Document_0\" widgetid=\"variableeditor_client_Document_0\" tabindex=\"0\"><div class=\"summaryBar\" style=\"font-size: 12px; font-family: Consolas, Inconsolata, Menlo, monospace;\"><span>gymTable = <\/span><span style=\"color: rgb(179, 179, 179); font-style: normal;\">3\u00d72 table <\/span><\/div><div id=\"variableeditor_TableViewModel_0\" widgetid=\"variableeditor_TableViewModel_0\" class=\"table ClientViewDiv hasSummaryBar\" data-viewid=\"__1\" style=\"width: 100%; overflow: auto;\"><table cellspacing=\"0\" style=\"border-spacing: 0px; border-collapse: collapse;\"><thead><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 34px; text-align: left; border: 1px solid rgb(191, 191, 191); background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>&nbsp;<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: center; border: 1px solid rgb(191, 191, 191); background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>Key<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: center; border: 1px solid rgb(191, 191, 191); background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>Value<\/span><\/th><\/tr><\/thead><tbody><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 34px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>1<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>\"Mike\"<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: right; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>89<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 34px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>2<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>\"Dave\"<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: right; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>75<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 6px 3px 3px; width: 34px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>3<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: left; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>\"Bob\"<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; text-align: right; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial;\"><span>110<\/span><\/td><\/tr><\/tbody><\/table><\/div><\/div><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\"><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Note that the entries of the table are in the order they were inserted in the original dictionary.  Let's now write this to a .csv file<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >writetable(gymTable,<\/span><span style=\"color: rgb(167, 9, 245);\">\"gym.csv\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_76EFBD85' ><span style=' font-weight: bold;'>An example application for dictionaries: counting word <\/span><span>occurrences<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>One of the classical uses for dictionaries is to count occurrences of words in a file. Let's do this using the <\/span><span style=' font-family: monospace;'>sonnets.txt<\/span><span> file that ships with MATLAB that contains 'The Sonnets' by William Shakespeare.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>First we load the text, get rid of unnecessary punctuation and convert everything to lowercase.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >sonnets = string(fileread(<\/span><span style=\"color: rgb(167, 9, 245);\">'sonnets.txt'<\/span><span >));<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >punctuationCharacters = [<\/span><span style=\"color: rgb(167, 9, 245);\">\".\" \"?\" \"!\" \",\" \";\" \":\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >sonnets = replace(sonnets,punctuationCharacters,<\/span><span style=\"color: rgb(167, 9, 245);\">\" \"<\/span><span >);<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px 0px 4px 4px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >sonnets = lower(sonnets);<\/span><\/span><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Split the string into an array of words<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >words = split(sonnets);<\/span><\/span><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Let's see how many words we have and how many of them are unique<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >numberOfWords = numel(words)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>numberOfWords = 17712<\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >numberOfUniqueWords = numel(unique(words))<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>numberOfUniqueWords = 3436<\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>To count the number of occurrences of each word, we first create a suitable empty dictionary where the keys are strings and the values are doubles<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d = dictionary(string.empty,double.empty);<\/span><\/span><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Now iterate over all of the words.  For each word, we check to see if it already exists in our dictionary.  If it does, increase the value by one.  If it doesn't, create a new entry with the value of 1.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 0px none rgb(33, 33, 33); border-radius: 4px 4px 0px 0px; padding: 6px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span style=\"color: rgb(14, 0, 255);\">for <\/span><span >word = words'<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(14, 0, 255);\">if <\/span><span >isKey(d,word)   <\/span><span style=\"color: rgb(0, 128, 19);\">% If this word exists in the dictionary<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >        d(word) = d(word) +1;   <\/span><span style=\"color: rgb(0, 128, 19);\">% Increment the value associated with that word by 1.<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(14, 0, 255);\">else<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >        d(word) = 1;   <\/span><span style=\"color: rgb(0, 128, 19);\">% Initialise a new word in the dictionary with the value set to 1.<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(14, 0, 255);\">end<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span style=\"color: rgb(14, 0, 255);\">end<\/span><\/span><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 0px none rgb(33, 33, 33); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 0px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class=\"inlineElement eoOutputWrapper embeddedOutputsVariableStringElement scrollableOutput\" uid=\"C4E53EDE\" prevent-scroll=\"true\" data-testid=\"output_33\" style=\"width: 1146px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div class=\"textElement eoOutputContent\" data-width=\"1116\" data-height=\"21017\" data-hashorizontaloverflow=\"false\" style=\"max-height: 261px; white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><span class=\"variableNameElement\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">d = <\/span><\/div><div style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">  dictionary (<strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">string<\/strong> \u27fc <strong style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\">double<\/strong>) with 3436 entries:\r\n\r\n    \"the\"                             \u27fc 436\r\n    \"sonnets\"                         \u27fc 1\r\n    \"by\"                              \u27fc 94\r\n    \"william\"                         \u27fc 1\r\n    \"shakespeare\"                     \u27fc 1\r\n    \"i\"                               \u27fc 341\r\n    \"from\"                            \u27fc 81\r\n    \"fairest\"                         \u27fc 5\r\n    \"creatures\"                       \u27fc 2\r\n    \"we\"                              \u27fc 15\r\n    \"desire\"                          \u27fc 11\r\n    \"increase\"                        \u27fc 4\r\n    \"that\"                            \u27fc 320\r\n    \"thereby\"                         \u27fc 2\r\n    \"beauty's\"                        \u27fc 18\r\n    \"rose\"                            \u27fc 6\r\n    \"might\"                           \u27fc 26\r\n    \"never\"                           \u27fc 15\r\n    \"die\"                             \u27fc 12\r\n    \"but\"                             \u27fc 163\r\n    \"as\"                              \u27fc 121\r\n    \"riper\"                           \u27fc 2\r\n    \"should\"                          \u27fc 44\r\n    \"time\"                            \u27fc 53\r\n    \"decease\"                         \u27fc 3\r\n    \"his\"                             \u27fc 107\r\n    \"tender\"                          \u27fc 7\r\n    \"heir\"                            \u27fc 3\r\n    \"bear\"                            \u27fc 12\r\n    \"memory\"                          \u27fc 8\r\n    \"thou\"                            \u27fc 233\r\n    \"contracted\"                      \u27fc 2\r\n    \"to\"                              \u27fc 409\r\n    \"thine\"                           \u27fc 44\r\n    \"own\"                             \u27fc 30\r\n    \"bright\"                          \u27fc 11\r\n    \"eyes\"                            \u27fc 51\r\n    \"feed'st\"                         \u27fc 1\r\n    \"thy\"                             \u27fc 280\r\n    \"light's\"                         \u27fc 1\r\n    \"flame\"                           \u27fc 3\r\n    \"with\"                            \u27fc 181\r\n    \"self-substantial\"                \u27fc 1\r\n    \"fuel\"                            \u27fc 1\r\n    \"making\"                          \u27fc 12\r\n    \"a\"                               \u27fc 163\r\n    \"famine\"                          \u27fc 1\r\n    \"where\"                           \u27fc 41\r\n    \"abundance\"                       \u27fc 4\r\n    \"lies\"                            \u27fc 12\r\n    \"self\"                            \u27fc 36\r\n    \"foe\"                             \u27fc 1\r\n    \"sweet\"                           \u27fc 55\r\n    \"too\"                             \u27fc 18\r\n    \"cruel\"                           \u27fc 8\r\n    \"art\"                             \u27fc 51\r\n    \"now\"                             \u27fc 45\r\n    \"world's\"                         \u27fc 5\r\n    \"fresh\"                           \u27fc 7\r\n    \"ornament\"                        \u27fc 5\r\n    \"and\"                             \u27fc 490\r\n    \"only\"                            \u27fc 6\r\n    \"herald\"                          \u27fc 1\r\n    \"gaudy\"                           \u27fc 1\r\n    \"spring\"                          \u27fc 5\r\n    \"within\"                          \u27fc 11\r\n    \"bud\"                             \u27fc 2\r\n    \"buriest\"                         \u27fc 1\r\n    \"content\"                         \u27fc 2\r\n    \"churl\"                           \u27fc 2\r\n    \"mak'st\"                          \u27fc 2\r\n    \"waste\"                           \u27fc 7\r\n    \"in\"                              \u27fc 321\r\n    \"niggarding\"                      \u27fc 1\r\n    \"pity\"                            \u27fc 8\r\n    \"world\"                           \u27fc 26\r\n    \"or\"                              \u27fc 79\r\n    \"else\"                            \u27fc 5\r\n    \"this\"                            \u27fc 103\r\n    \"glutton\"                         \u27fc 1\r\n    \"be\"                              \u27fc 141\r\n    \"eat\"                             \u27fc 3\r\n    \"due\"                             \u27fc 6\r\n    \"grave\"                           \u27fc 3\r\n    \"thee\"                            \u27fc 162\r\n    \"ii\"                              \u27fc 1\r\n    \"when\"                            \u27fc 106\r\n    \"forty\"                           \u27fc 1\r\n    \"winters\"                         \u27fc 2\r\n    \"shall\"                           \u27fc 59\r\n    \"besiege\"                         \u27fc 2\r\n    \"brow\"                            \u27fc 8\r\n    \"dig\"                             \u27fc 1\r\n    \"deep\"                            \u27fc 8\r\n    \"trenches\"                        \u27fc 1\r\n    \"field\"                           \u27fc 1\r\n    \"youth's\"                         \u27fc 1\r\n    \"proud\"                           \u27fc 12\r\n    \"livery\"                          \u27fc 1\r\n    \"so\"                              \u27fc 145\r\n    \"gazed\"                           \u27fc 1\r\n    \"on\"                              \u27fc 80\r\n    \"will\"                            \u27fc 54\r\n    \"tatter'd\"                        \u27fc 2\r\n    \"weed\"                            \u27fc 3\r\n    \"of\"                              \u27fc 370\r\n    \"small\"                           \u27fc 2\r\n    \"worth\"                           \u27fc 18\r\n    \"held\"                            \u27fc 2\r\n    \"then\"                            \u27fc 73\r\n    \"being\"                           \u27fc 32\r\n    \"asked\"                           \u27fc 1\r\n    \"all\"                             \u27fc 116\r\n    \"beauty\"                          \u27fc 52\r\n    \"treasure\"                        \u27fc 9\r\n    \"lusty\"                           \u27fc 2\r\n    \"days\"                            \u27fc 17\r\n    \"say\"                             \u27fc 28\r\n    \"sunken\"                          \u27fc 1\r\n    \"were\"                            \u27fc 29\r\n    \"an\"                              \u27fc 17\r\n    \"all-eating\"                      \u27fc 1\r\n    \"shame\"                           \u27fc 10\r\n    \"thriftless\"                      \u27fc 1\r\n    \"praise\"                          \u27fc 28\r\n    \"how\"                             \u27fc 40\r\n    \"much\"                            \u27fc 17\r\n    \"more\"                            \u27fc 64\r\n    \"deserv'd\"                        \u27fc 1\r\n    \"use\"                             \u27fc 13\r\n    \"if\"                              \u27fc 68\r\n    \"couldst\"                         \u27fc 1\r\n    \"answer\"                          \u27fc 3\r\n    \"'this\"                           \u27fc 2\r\n    \"fair\"                            \u27fc 41\r\n    \"child\"                           \u27fc 8\r\n    \"mine\"                            \u27fc 63\r\n    \"sum\"                             \u27fc 4\r\n    \"my\"                              \u27fc 371\r\n    \"count\"                           \u27fc 4\r\n    \"make\"                            \u27fc 43\r\n    \"old\"                             \u27fc 22\r\n    \"excuse\"                          \u27fc 7\r\n    \"'\"                               \u27fc 16\r\n    \"proving\"                         \u27fc 1\r\n    \"succession\"                      \u27fc 1\r\n    \"new\"                             \u27fc 22\r\n    \"made\"                            \u27fc 19\r\n    \"see\"                             \u27fc 35\r\n    \"blood\"                           \u27fc 8\r\n    \"warm\"                            \u27fc 1\r\n    \"feel'st\"                         \u27fc 1\r\n    \"it\"                              \u27fc 104\r\n    \"cold\"                            \u27fc 7\r\n    \"iii\"                             \u27fc 1\r\n    \"look\"                            \u27fc 22\r\n    \"glass\"                           \u27fc 10\r\n    \"tell\"                            \u27fc 15\r\n    \"face\"                            \u27fc 19\r\n    \"viewest\"                         \u27fc 1\r\n    \"is\"                              \u27fc 168\r\n    \"form\"                            \u27fc 11\r\n    \"another\"                         \u27fc 9\r\n    \"whose\"                           \u27fc 19\r\n    \"repair\"                          \u27fc 3\r\n    \"not\"                             \u27fc 166\r\n    \"renewest\"                        \u27fc 1\r\n    \"dost\"                            \u27fc 29\r\n    \"beguile\"                         \u27fc 1\r\n    \"unbless\"                         \u27fc 1\r\n    \"some\"                            \u27fc 31\r\n    \"mother\"                          \u27fc 2\r\n    \"for\"                             \u27fc 171\r\n    \"she\"                             \u27fc 33\r\n    \"unear'd\"                         \u27fc 1\r\n    \"womb\"                            \u27fc 2\r\n    \"disdains\"                        \u27fc 1\r\n    \"tillage\"                         \u27fc 1\r\n    \"husbandry\"                       \u27fc 2\r\n    \"who\"                             \u27fc 29\r\n    \"he\"                              \u27fc 43\r\n    \"fond\"                            \u27fc 2\r\n    \"tomb\"                            \u27fc 5\r\n    \"self-love\"                       \u27fc 3\r\n    \"stop\"                            \u27fc 2\r\n    \"posterity\"                       \u27fc 3\r\n    \"mother's\"                        \u27fc 3\r\n    \"calls\"                           \u27fc 5\r\n    \"back\"                            \u27fc 9\r\n    \"lovely\"                          \u27fc 8\r\n    \"april\"                           \u27fc 3\r\n    \"her\"                             \u27fc 51\r\n    \"prime\"                           \u27fc 4\r\n    \"through\"                         \u27fc 6\r\n    \"windows\"                         \u27fc 3\r\n    \"age\"                             \u27fc 15\r\n    \"shalt\"                           \u27fc 11\r\n    \"despite\"                         \u27fc 6\r\n    \"wrinkles\"                        \u27fc 5\r\n    \"golden\"                          \u27fc 5\r\n    \"live\"                            \u27fc 29\r\n    \"remember'd\"                      \u27fc 3\r\n    \"single\"                          \u27fc 4\r\n    \"image\"                           \u27fc 4\r\n    \"dies\"                            \u27fc 1\r\n    \"iv\"                              \u27fc 1\r\n    \"unthrifty\"                       \u27fc 1\r\n    \"loveliness\"                      \u27fc 1\r\n    \"why\"                             \u27fc 25\r\n    \"spend\"                           \u27fc 5\r\n    \"upon\"                            \u27fc 29\r\n    \"legacy\"                          \u27fc 1\r\n    \"nature's\"                        \u27fc 6\r\n    \"bequest\"                         \u27fc 1\r\n    \"gives\"                           \u27fc 8\r\n    \"nothing\"                         \u27fc 19\r\n    \"doth\"                            \u27fc 88\r\n    \"lend\"                            \u27fc 5\r\n    \"frank\"                           \u27fc 1\r\n    \"lends\"                           \u27fc 4\r\n    \"those\"                           \u27fc 33\r\n    \"are\"                             \u27fc 69\r\n    \"free\"                            \u27fc 4\r\n    \"beauteous\"                       \u27fc 9\r\n    \"niggard\"                         \u27fc 2\r\n    \"abuse\"                           \u27fc 3\r\n    \"bounteous\"                       \u27fc 2\r\n    \"largess\"                         \u27fc 1\r\n    \"given\"                           \u27fc 4\r\n    \"give\"                            \u27fc 26\r\n    \"profitless\"                      \u27fc 1\r\n    \"usurer\"                          \u27fc 2\r\n    \"great\"                           \u27fc 10\r\n    \"sums\"                            \u27fc 1\r\n    \"yet\"                             \u27fc 51\r\n    \"canst\"                           \u27fc 7\r\n    \"having\"                          \u27fc 6\r\n    \"traffic\"                         \u27fc 1\r\n    \"alone\"                           \u27fc 19\r\n    \"deceive\"                         \u27fc 2\r\n    \"nature\"                          \u27fc 10\r\n    \"gone\"                            \u27fc 9\r\n    \"what\"                            \u27fc 70\r\n    \"acceptable\"                      \u27fc 1\r\n    \"audit\"                           \u27fc 3\r\n    \"leave\"                           \u27fc 10\r\n    \"unused\"                          \u27fc 4\r\n    \"must\"                            \u27fc 21\r\n    \"tombed\"                          \u27fc 1\r\n    \"which\"                           \u27fc 108\r\n    \"used\"                            \u27fc 1\r\n    \"lives\"                           \u27fc 9\r\n    \"th'\"                             \u27fc 2\r\n    \"executor\"                        \u27fc 1\r\n    \"v\"                               \u27fc 1\r\n    \"hours\"                           \u27fc 12\r\n    \"gentle\"                          \u27fc 14\r\n    \"work\"                            \u27fc 3\r\n    \"did\"                             \u27fc 26\r\n    \"frame\"                           \u27fc 4\r\n    \"gaze\"                            \u27fc 2\r\n    \"every\"                           \u27fc 30\r\n    \"eye\"                             \u27fc 37\r\n    \"dwell\"                           \u27fc 6\r\n    \"play\"                            \u27fc 5\r\n    \"tyrants\"                         \u27fc 1\r\n    \"very\"                            \u27fc 7\r\n    \"same\"                            \u27fc 6\r\n    \"unfair\"                          \u27fc 1\r\n    \"fairly\"                          \u27fc 1\r\n    \"excel\"                           \u27fc 1\r\n    \"never-resting\"                   \u27fc 1\r\n    \"leads\"                           \u27fc 2\r\n    \"summer\"                          \u27fc 8\r\n    \"hideous\"                         \u27fc 2\r\n    \"winter\"                          \u27fc 5\r\n    \"confounds\"                       \u27fc 3\r\n    \"him\"                             \u27fc 38\r\n    \"there\"                           \u27fc 18\r\n    \"sap\"                             \u27fc 2\r\n    \"checked\"                         \u27fc 2\r\n    \"frost\"                           \u27fc 1\r\n    \"leaves\"                          \u27fc 8\r\n    \"quite\"                           \u27fc 5\r\n    \"o'er-snowed\"                     \u27fc 1\r\n    \"bareness\"                        \u27fc 2\r\n    \"summer's\"                        \u27fc 11\r\n    \"distillation\"                    \u27fc 1\r\n    \"left\"                            \u27fc 5\r\n    \"liquid\"                          \u27fc 1\r\n    \"prisoner\"                        \u27fc 1\r\n    \"pent\"                            \u27fc 2\r\n    \"walls\"                           \u27fc 2\r\n    \"effect\"                          \u27fc 3\r\n    \"bereft\"                          \u27fc 1\r\n    \"nor\"                             \u27fc 52\r\n    \"no\"                              \u27fc 77\r\n    \"remembrance\"                     \u27fc 2\r\n    \"was\"                             \u27fc 29\r\n    \"flowers\"                         \u27fc 8\r\n    \"distill'd\"                       \u27fc 3\r\n    \"though\"                          \u27fc 32\r\n    \"they\"                            \u27fc 52\r\n    \"meet\"                            \u27fc 2\r\n    \"leese\"                           \u27fc 1\r\n    \"their\"                           \u27fc 62\r\n    \"show\"                            \u27fc 23\r\n    \"substance\"                       \u27fc 4\r\n    \"still\"                           \u27fc 41\r\n    \"vi\"                              \u27fc 1\r\n    \"let\"                             \u27fc 26\r\n    \"winter's\"                        \u27fc 3\r\n    \"ragged\"                          \u27fc 1\r\n    \"hand\"                            \u27fc 17\r\n    \"deface\"                          \u27fc 1\r\n    \"ere\"                             \u27fc 6\r\n    \"vial\"                            \u27fc 1\r\n    \"place\"                           \u27fc 10\r\n    \"self-kill'd\"                     \u27fc 1\r\n    \"forbidden\"                       \u27fc 1\r\n    \"usury\"                           \u27fc 1\r\n    \"happies\"                         \u27fc 1\r\n    \"pay\"                             \u27fc 3\r\n    \"willing\"                         \u27fc 2\r\n    \"loan\"                            \u27fc 1\r\n    \"that's\"                          \u27fc 1\r\n    \"breed\"                           \u27fc 2\r\n    \"ten\"                             \u27fc 7\r\n    \"times\"                           \u27fc 9\r\n    \"happier\"                         \u27fc 3\r\n    \"one\"                             \u27fc 43\r\n    \"than\"                            \u27fc 48\r\n    \"refigur'd\"                       \u27fc 1\r\n    \"could\"                           \u27fc 10\r\n    \"death\"                           \u27fc 15\r\n    \"do\"                              \u27fc 84\r\n    \"shouldst\"                        \u27fc 6\r\n    \"depart\"                          \u27fc 2\r\n    \"leaving\"                         \u27fc 1\r\n    \"living\"                          \u27fc 7\r\n    \"self-will'd\"                     \u27fc 1\r\n    \"death's\"                         \u27fc 4\r\n    \"conquest\"                        \u27fc 3\r\n    \"worms\"                           \u27fc 4\r\n    \"vii\"                             \u27fc 1\r\n    \"lo\"                              \u27fc 3\r\n    \"orient\"                          \u27fc 1\r\n    \"gracious\"                        \u27fc 5\r\n    \"light\"                           \u27fc 6\r\n    \"lifts\"                           \u27fc 1\r\n    \"up\"                              \u27fc 15\r\n    \"burning\"                         \u27fc 1\r\n    \"head\"                            \u27fc 6\r\n    \"each\"                            \u27fc 15\r\n    \"under\"                           \u27fc 6\r\n    \"homage\"                          \u27fc 1\r\n    \"new-appearing\"                   \u27fc 1\r\n    \"sight\"                           \u27fc 17\r\n    \"serving\"                         \u27fc 2\r\n    \"looks\"                           \u27fc 13\r\n    \"sacred\"                          \u27fc 2\r\n    \"majesty\"                         \u27fc 2\r\n    \"climb'd\"                         \u27fc 1\r\n    \"steep-up\"                        \u27fc 1\r\n    \"heavenly\"                        \u27fc 3\r\n    \"hill\"                            \u27fc 1\r\n    \"resembling\"                      \u27fc 2\r\n    \"strong\"                          \u27fc 9\r\n    \"youth\"                           \u27fc 15\r\n    \"middle\"                          \u27fc 1\r\n    \"mortal\"                          \u27fc 5\r\n    \"adore\"                           \u27fc 1\r\n    \"attending\"                       \u27fc 2\r\n    \"pilgrimage\"                      \u27fc 2\r\n    \"highmost\"                        \u27fc 1\r\n    \"pitch\"                           \u27fc 2\r\n    \"weary\"                           \u27fc 4\r\n    \"car\"                             \u27fc 1\r\n    \"like\"                            \u27fc 34\r\n    \"feeble\"                          \u27fc 1\r\n    \"reeleth\"                         \u27fc 1\r\n    \"day\"                             \u27fc 25\r\n    \"'fore\"                           \u27fc 1\r\n    \"duteous\"                         \u27fc 1\r\n    \"converted\"                       \u27fc 2\r\n    \"low\"                             \u27fc 1\r\n    \"tract\"                           \u27fc 1\r\n    \"way\"                             \u27fc 6\r\n    \"thyself\"                         \u27fc 7\r\n    \"outgoing\"                        \u27fc 1\r\n    \"noon\"                            \u27fc 1\r\n    \"unlook'd\"                        \u27fc 2\r\n    \"diest\"                           \u27fc 1\r\n    \"unless\"                          \u27fc 6\r\n    \"get\"                             \u27fc 1\r\n    \"son\"                             \u27fc 3\r\n    \"viii\"                            \u27fc 1\r\n    \"music\"                           \u27fc 6\r\n    \"hear\"                            \u27fc 6\r\n    \"hear'st\"                         \u27fc 1\r\n    \"sadly\"                           \u27fc 1\r\n    \"sweets\"                          \u27fc 6\r\n    \"war\"                             \u27fc 6\r\n    \"joy\"                             \u27fc 8\r\n    \"delights\"                        \u27fc 2\r\n    \"lov'st\"                          \u27fc 6\r\n    \"receiv'st\"                       \u27fc 2\r\n    \"gladly\"                          \u27fc 1\r\n    \"pleasure\"                        \u27fc 11\r\n    \"annoy\"                           \u27fc 1\r\n    \"true\"                            \u27fc 37\r\n    \"concord\"                         \u27fc 2\r\n    \"well-tuned\"                      \u27fc 1\r\n    \"sounds\"                          \u27fc 2\r\n    \"unions\"                          \u27fc 1\r\n    \"married\"                         \u27fc 2\r\n    \"offend\"                          \u27fc 1\r\n    \"ear\"                             \u27fc 3\r\n    \"sweetly\"                         \u27fc 2\r\n    \"chide\"                           \u27fc 5\r\n    \"singleness\"                      \u27fc 1\r\n    \"parts\"                           \u27fc 7\r\n    \"mark\"                            \u27fc 4\r\n    \"string\"                          \u27fc 1\r\n    \"husband\"                         \u27fc 3\r\n    \"strikes\"                         \u27fc 1\r\n    \"mutual\"                          \u27fc 2\r\n    \"ordering\"                        \u27fc 1\r\n    \"sire\"                            \u27fc 1\r\n    \"happy\"                           \u27fc 11\r\n    \"pleasing\"                        \u27fc 2\r\n    \"note\"                            \u27fc 2\r\n    \"sing\"                            \u27fc 7\r\n    \"speechless\"                      \u27fc 2\r\n    \"song\"                            \u27fc 4\r\n    \"many\"                            \u27fc 13\r\n    \"seeming\"                         \u27fc 4\r\n    \"sings\"                           \u27fc 2\r\n    \"'thou\"                           \u27fc 1\r\n    \"wilt\"                            \u27fc 14\r\n    \"prove\"                           \u27fc 12\r\n    \"none\"                            \u27fc 13\r\n    \"ix\"                              \u27fc 1\r\n    \"fear\"                            \u27fc 8\r\n    \"wet\"                             \u27fc 1\r\n    \"widow's\"                         \u27fc 1\r\n    \"consum'st\"                       \u27fc 1\r\n    \"life\"                            \u27fc 23\r\n    \"ah\"                              \u27fc 7\r\n    \"issueless\"                       \u27fc 1\r\n    \"hap\"                             \u27fc 1\r\n    \"wail\"                            \u27fc 2\r\n    \"makeless\"                        \u27fc 1\r\n    \"wife\"                            \u27fc 1\r\n    \"widow\"                           \u27fc 2\r\n    \"weep\"                            \u27fc 3\r\n    \"hast\"                            \u27fc 16\r\n    \"behind\"                          \u27fc 4\r\n    \"private\"                         \u27fc 1\r\n    \"well\"                            \u27fc 22\r\n    \"may\"                             \u27fc 29\r\n    \"keep\"                            \u27fc 9\r\n    \"children's\"                      \u27fc 1\r\n    \"husband's\"                       \u27fc 1\r\n    \"shape\"                           \u27fc 5\r\n    \"mind\"                            \u27fc 16\r\n    \"unthrift\"                        \u27fc 1\r\n    \"shifts\"                          \u27fc 1\r\n    \"enjoys\"                          \u27fc 1\r\n    \"hath\"                            \u27fc 43\r\n    \"end\"                             \u27fc 10\r\n    \"kept\"                            \u27fc 3\r\n    \"user\"                            \u27fc 1\r\n    \"destroys\"                        \u27fc 1\r\n    \"love\"                            \u27fc 160\r\n    \"toward\"                          \u27fc 1\r\n    \"others\"                          \u27fc 11\r\n    \"bosom\"                           \u27fc 2\r\n    \"sits\"                            \u27fc 1\r\n    \"himself\"                         \u27fc 2\r\n    \"such\"                            \u27fc 30\r\n    \"murd'rous\"                       \u27fc 1\r\n    \"commits\"                         \u27fc 2\r\n    \"x\"                               \u27fc 1\r\n    \"deny\"                            \u27fc 2\r\n    \"bear'st\"                         \u27fc 1\r\n    \"any\"                             \u27fc 10\r\n    \"unprovident\"                     \u27fc 1\r\n    \"grant\"                           \u27fc 4\r\n    \"belov'd\"                         \u27fc 3\r\n    \"most\"                            \u27fc 27\r\n    \"evident\"                         \u27fc 1\r\n    \"possess'd\"                       \u27fc 2\r\n    \"murderous\"                       \u27fc 2\r\n    \"hate\"                            \u27fc 13\r\n    \"'gainst\"                         \u27fc 6\r\n    \"stick'st\"                        \u27fc 1\r\n    \"conspire\"                        \u27fc 1\r\n    \"seeking\"                         \u27fc 1\r\n    \"roof\"                            \u27fc 1\r\n    \"ruinate\"                         \u27fc 1\r\n    \"chief\"                           \u27fc 2\r\n    \"o\"                               \u27fc 50\r\n    \"change\"                          \u27fc 12\r\n    \"thought\"                         \u27fc 18\r\n    \"fairer\"                          \u27fc 3\r\n    \"lodg'd\"                          \u27fc 1\r\n    \"presence\"                        \u27fc 2\r\n    \"kind\"                            \u27fc 11\r\n    \"at\"                              \u27fc 26\r\n    \"least\"                           \u27fc 5\r\n    \"kind-hearted\"                    \u27fc 1\r\n    \"me\"                              \u27fc 164\r\n    \"xi\"                              \u27fc 1\r\n    \"fast\"                            \u27fc 5\r\n    \"wane\"                            \u27fc 1\r\n    \"grow'st\"                         \u27fc 3\r\n    \"departest\"                       \u27fc 1\r\n    \"youngly\"                         \u27fc 1\r\n    \"bestow'st\"                       \u27fc 1\r\n    \"mayst\"                           \u27fc 12\r\n    \"call\"                            \u27fc 10\r\n    \"convertest\"                      \u27fc 1\r\n    \"herein\"                          \u27fc 1\r\n    \"wisdom\"                          \u27fc 1\r\n    \"without\"                         \u27fc 8\r\n    \"folly\"                           \u27fc 1\r\n    \"decay\"                           \u27fc 9\r\n    \"minded\"                          \u27fc 1\r\n    \"cease\"                           \u27fc 1\r\n    \"threescore\"                      \u27fc 1\r\n    \"year\"                            \u27fc 5\r\n    \"would\"                           \u27fc 21\r\n    \"away\"                            \u27fc 18\r\n    \"whom\"                            \u27fc 12\r\n    \"store\"                           \u27fc 9\r\n    \"harsh\"                           \u27fc 1\r\n    \"featureless\"                     \u27fc 1\r\n    \"rude\"                            \u27fc 4\r\n    \"barrenly\"                        \u27fc 1\r\n    \"perish\"                          \u27fc 1\r\n    \"best\"                            \u27fc 23\r\n    \"endow'd\"                         \u27fc 1\r\n    \"gave\"                            \u27fc 5\r\n    \"gift\"                            \u27fc 5\r\n    \"bounty\"                          \u27fc 2\r\n    \"cherish\"                         \u27fc 1\r\n    \"carv'd\"                          \u27fc 1\r\n    \"seal\"                            \u27fc 1\r\n    \"meant\"                           \u27fc 1\r\n    \"print\"                           \u27fc 1\r\n    \"copy\"                            \u27fc 2\r\n    \"xii\"                             \u27fc 1\r\n    \"clock\"                           \u27fc 2\r\n    \"tells\"                           \u27fc 2\r\n    \"brave\"                           \u27fc 3\r\n    \"sunk\"                            \u27fc 1\r\n    \"night\"                           \u27fc 22\r\n    \"behold\"                          \u27fc 7\r\n    \"violet\"                          \u27fc 2\r\n    \"past\"                            \u27fc 9\r\n    \"sable\"                           \u27fc 1\r\n    \"curls\"                           \u27fc 1\r\n    \"silvered\"                        \u27fc 1\r\n    \"o'er\"                            \u27fc 6\r\n    \"white\"                           \u27fc 7\r\n    \"lofty\"                           \u27fc 2\r\n    \"trees\"                           \u27fc 1\r\n    \"barren\"                          \u27fc 5\r\n    \"erst\"                            \u27fc 1\r\n    \"heat\"                            \u27fc 4\r\n    \"canopy\"                          \u27fc 2\r\n    \"herd\"                            \u27fc 1\r\n    \"green\"                           \u27fc 5\r\n    \"girded\"                          \u27fc 1\r\n    \"sheaves\"                         \u27fc 1\r\n    \"borne\"                           \u27fc 2\r\n    \"bier\"                            \u27fc 1\r\n    \"bristly\"                         \u27fc 1\r\n    \"beard\"                           \u27fc 1\r\n    \"question\"                        \u27fc 2\r\n    \"among\"                           \u27fc 3\r\n    \"wastes\"                          \u27fc 2\r\n    \"go\"                              \u27fc 6\r\n    \"since\"                           \u27fc 23\r\n    \"beauties\"                        \u27fc 4\r\n    \"themselves\"                      \u27fc 6\r\n    \"forsake\"                         \u27fc 2\r\n    \"grow\"                            \u27fc 8\r\n    \"time's\"                          \u27fc 16\r\n    \"scythe\"                          \u27fc 4\r\n    \"can\"                             \u27fc 44\r\n    \"defence\"                         \u27fc 3\r\n    \"save\"                            \u27fc 9\r\n    \"takes\"                           \u27fc 3\r\n    \"hence\"                           \u27fc 6\r\n    \"xiii\"                            \u27fc 1\r\n    \"you\"                             \u27fc 111\r\n    \"your\"                            \u27fc 92\r\n    \"longer\"                          \u27fc 6\r\n    \"yours\"                           \u27fc 5\r\n    \"here\"                            \u27fc 4\r\n    \"against\"                         \u27fc 18\r\n    \"coming\"                          \u27fc 2\r\n    \"prepare\"                         \u27fc 2\r\n    \"semblance\"                       \u27fc 1\r\n    \"other\"                           \u27fc 16\r\n    \"hold\"                            \u27fc 13\r\n    \"lease\"                           \u27fc 4\r\n    \"find\"                            \u27fc 16\r\n    \"determination\"                   \u27fc 1\r\n    \"yourself\"                        \u27fc 7\r\n    \"again\"                           \u27fc 10\r\n    \"after\"                           \u27fc 10\r\n    \"yourself's\"                      \u27fc 1\r\n    \"issue\"                           \u27fc 2\r\n    \"lets\"                            \u27fc 1\r\n    \"house\"                           \u27fc 1\r\n    \"fall\"                            \u27fc 3\r\n    \"honour\"                          \u27fc 7\r\n    \"uphold\"                          \u27fc 1\r\n    \"stormy\"                          \u27fc 1\r\n    \"gusts\"                           \u27fc 1\r\n    \"rage\"                            \u27fc 5\r\n    \"eternal\"                         \u27fc 6\r\n    \"unthrifts\"                       \u27fc 1\r\n    \"dear\"                            \u27fc 20\r\n    \"know\"                            \u27fc 17\r\n    \"had\"                             \u27fc 15\r\n    \"father\"                          \u27fc 2\r\n    \"xiv\"                             \u27fc 1\r\n    \"stars\"                           \u27fc 5\r\n    \"judgement\"                       \u27fc 2\r\n    \"pluck\"                           \u27fc 4\r\n    \"methinks\"                        \u27fc 4\r\n    \"have\"                            \u27fc 75\r\n    \"astronomy\"                       \u27fc 1\r\n    \"good\"                            \u27fc 15\r\n    \"evil\"                            \u27fc 4\r\n    \"luck\"                            \u27fc 1\r\n    \"plagues\"                         \u27fc 1\r\n    \"dearths\"                         \u27fc 1\r\n    \"seasons'\"                        \u27fc 1\r\n    \"quality\"                         \u27fc 1\r\n    \"fortune\"                         \u27fc 6\r\n    \"brief\"                           \u27fc 3\r\n    \"minutes\"                         \u27fc 4\r\n    \"pointing\"                        \u27fc 1\r\n    \"thunder\"                         \u27fc 1\r\n    \"rain\"                            \u27fc 3\r\n    \"wind\"                            \u27fc 2\r\n    \"princes\"                         \u27fc 2\r\n    \"oft\"                             \u27fc 5\r\n    \"predict\"                         \u27fc 1\r\n    \"heaven\"                          \u27fc 13\r\n    \"knowledge\"                       \u27fc 3\r\n    \"derive\"                          \u27fc 1\r\n    \"constant\"                        \u27fc 3\r\n    \"them\"                            \u27fc 17\r\n    \"read\"                            \u27fc 5\r\n    \"'truth\"                          \u27fc 2\r\n    \"together\"                        \u27fc 1\r\n    \"thrive\"                          \u27fc 2\r\n    \"wouldst\"                         \u27fc 3\r\n    \"convert'\"                        \u27fc 1\r\n    \"prognosticate\"                   \u27fc 1\r\n    \"'thy\"                            \u27fc 1\r\n    \"truth's\"                         \u27fc 1\r\n    \"doom\"                            \u27fc 5\r\n    \"date\"                            \u27fc 5\r\n    \"xv\"                              \u27fc 1\r\n    \"consider\"                        \u27fc 1\r\n    \"thing\"                           \u27fc 11\r\n    \"grows\"                           \u27fc 4\r\n    \"holds\"                           \u27fc 5\r\n    \"perfection\"                      \u27fc 2\r\n    \"little\"                          \u27fc 2\r\n    \"moment\"                          \u27fc 1\r\n    \"huge\"                            \u27fc 2\r\n    \"stage\"                           \u27fc 2\r\n    \"presenteth\"                      \u27fc 1\r\n    \"nought\"                          \u27fc 3\r\n    \"shows\"                           \u27fc 6\r\n    \"whereon\"                         \u27fc 3\r\n    \"secret\"                          \u27fc 1\r\n    \"influence\"                       \u27fc 2\r\n    \"comment\"                         \u27fc 2\r\n    \"perceive\"                        \u27fc 1\r\n    \"men\"                             \u27fc 15\r\n    \"plants\"                          \u27fc 1\r\n    \"cheered\"                         \u27fc 1\r\n    \"even\"                            \u27fc 24\r\n    \"self-same\"                       \u27fc 1\r\n    \"sky\"                             \u27fc 1\r\n    \"vaunt\"                           \u27fc 1\r\n    \"youthful\"                        \u27fc 2\r\n    \"height\"                          \u27fc 3\r\n    \"decrease\"                        \u27fc 1\r\n    \"wear\"                            \u27fc 3\r\n    \"state\"                           \u27fc 14\r\n    \"out\"                             \u27fc 16\r\n    \"conceit\"                         \u27fc 3\r\n    \"inconstant\"                      \u27fc 2\r\n    \"stay\"                            \u27fc 9\r\n    \"sets\"                            \u27fc 2\r\n    \"rich\"                            \u27fc 10\r\n    \"before\"                          \u27fc 15\r\n    \"wasteful\"                        \u27fc 2\r\n    \"debateth\"                        \u27fc 1\r\n    \"sullied\"                         \u27fc 1\r\n    \"engraft\"                         \u27fc 1\r\n    \"xvi\"                             \u27fc 1\r\n    \"wherefore\"                       \u27fc 4\r\n    \"mightier\"                        \u27fc 1\r\n    \"bloody\"                          \u27fc 3\r\n    \"tyrant\"                          \u27fc 3\r\n    \"fortify\"                         \u27fc 2\r\n    \"means\"                           \u27fc 3\r\n    \"blessed\"                         \u27fc 7\r\n    \"rhyme\"                           \u27fc 4\r\n    \"stand\"                           \u27fc 8\r\n    \"top\"                             \u27fc 1\r\n    \"maiden\"                          \u27fc 3\r\n    \"gardens\"                         \u27fc 1\r\n    \"unset\"                           \u27fc 1\r\n    \"virtuous\"                        \u27fc 3\r\n    \"wish\"                            \u27fc 5\r\n    \"liker\"                           \u27fc 1\r\n    \"painted\"                         \u27fc 5\r\n    \"counterfeit\"                     \u27fc 2\r\n    \"lines\"                           \u27fc 8\r\n    \"pencil\"                          \u27fc 2\r\n    \"pupil\"                           \u27fc 1\r\n    \"pen\"                             \u27fc 10\r\n    \"neither\"                         \u27fc 2\r\n    \"inward\"                          \u27fc 4\r\n    \"outward\"                         \u27fc 7\r\n    \"keeps\"                           \u27fc 5\r\n    \"drawn\"                           \u27fc 3\r\n    \"skill\"                           \u27fc 8\r\n    \"xvii\"                            \u27fc 1\r\n    \"believe\"                         \u27fc 4\r\n    \"verse\"                           \u27fc 15\r\n    \"come\"                            \u27fc 15\r\n    \"fill'd\"                          \u27fc 3\r\n    \"high\"                            \u27fc 4\r\n    \"deserts\"                         \u27fc 2\r\n    \"knows\"                           \u27fc 11\r\n    \"hides\"                           \u27fc 1\r\n    \"half\"                            \u27fc 3\r\n    \"write\"                           \u27fc 10\r\n    \"numbers\"                         \u27fc 4\r\n    \"number\"                          \u27fc 3\r\n    \"graces\"                          \u27fc 5\r\n    \"poet\"                            \u27fc 2\r\n    \"touches\"                         \u27fc 4\r\n    \"ne'er\"                           \u27fc 3\r\n    \"touch'd\"                         \u27fc 1\r\n    \"earthly\"                         \u27fc 1\r\n    \"faces\"                           \u27fc 2\r\n    \"papers\"                          \u27fc 1\r\n    \"yellow'd\"                        \u27fc 1\r\n    \"scorn'd\"                         \u27fc 1\r\n    \"less\"                            \u27fc 7\r\n    \"truth\"                           \u27fc 21\r\n    \"tongue\"                          \u27fc 11\r\n    \"rights\"                          \u27fc 1\r\n    \"term'd\"                          \u27fc 1\r\n    \"poet's\"                          \u27fc 2\r\n    \"stretched\"                       \u27fc 1\r\n    \"metre\"                           \u27fc 1\r\n    \"antique\"                         \u27fc 5\r\n    \"alive\"                           \u27fc 2\r\n    \"twice\"                           \u27fc 2\r\n    \"--in\"                            \u27fc 1\r\n    \"xviii\"                           \u27fc 1\r\n    \"compare\"                         \u27fc 5\r\n    \"temperate\"                       \u27fc 1\r\n    \"rough\"                           \u27fc 1\r\n    \"winds\"                           \u27fc 2\r\n    \"shake\"                           \u27fc 3\r\n    \"darling\"                         \u27fc 1\r\n    \"buds\"                            \u27fc 4\r\n    \"short\"                           \u27fc 4\r\n    \"sometime\"                        \u27fc 6\r\n    \"hot\"                             \u27fc 3\r\n    \"shines\"                          \u27fc 2\r\n    \"often\"                           \u27fc 2\r\n    \"gold\"                            \u27fc 2\r\n    \"complexion\"                      \u27fc 3\r\n    \"dimm'd\"                          \u27fc 1\r\n    \"declines\"                        \u27fc 1\r\n    \"chance\"                          \u27fc 1\r\n    \"changing\"                        \u27fc 2\r\n    \"course\"                          \u27fc 3\r\n    \"untrimm'd\"                       \u27fc 1\r\n    \"fade\"                            \u27fc 2\r\n    \"lose\"                            \u27fc 9\r\n    \"possession\"                      \u27fc 2\r\n    \"ow'st\"                           \u27fc 1\r\n    \"brag\"                            \u27fc 1\r\n    \"wander'st\"                       \u27fc 1\r\n    \"shade\"                           \u27fc 4\r\n    \"long\"                            \u27fc 11\r\n    \"breathe\"                         \u27fc 2\r\n    \"xix\"                             \u27fc 1\r\n    \"devouring\"                       \u27fc 1\r\n    \"blunt\"                           \u27fc 3\r\n    \"lion's\"                          \u27fc 1\r\n    \"paws\"                            \u27fc 1\r\n    \"earth\"                           \u27fc 12\r\n    \"devour\"                          \u27fc 1\r\n    \"brood\"                           \u27fc 1\r\n    \"keen\"                            \u27fc 2\r\n    \"teeth\"                           \u27fc 1\r\n    \"fierce\"                          \u27fc 2\r\n    \"tiger's\"                         \u27fc 1\r\n    \"jaws\"                            \u27fc 1\r\n    \"burn\"                            \u27fc 3\r\n    \"long-liv'd\"                      \u27fc 1\r\n    \"phoenix\"                         \u27fc 1\r\n    \"glad\"                            \u27fc 2\r\n    \"sorry\"                           \u27fc 1\r\n    \"seasons\"                         \u27fc 2\r\n    \"fleets\"                          \u27fc 1\r\n    \"whate'er\"                        \u27fc 2\r\n    \"swift-footed\"                    \u27fc 1\r\n    \"wide\"                            \u27fc 6\r\n    \"fading\"                          \u27fc 2\r\n    \"forbid\"                          \u27fc 3\r\n    \"heinous\"                         \u27fc 1\r\n    \"crime\"                           \u27fc 4\r\n    \"carve\"                           \u27fc 1\r\n    \"love's\"                          \u27fc 27\r\n    \"draw\"                            \u27fc 3\r\n    \"untainted\"                       \u27fc 1\r\n    \"allow\"                           \u27fc 2\r\n    \"pattern\"                         \u27fc 2\r\n    \"succeeding\"                      \u27fc 1\r\n    \"worst\"                           \u27fc 7\r\n    \"wrong\"                           \u27fc 6\r\n    \"ever\"                            \u27fc 11\r\n    \"young\"                           \u27fc 4\r\n    \"xx\"                              \u27fc 1\r\n    \"woman's\"                         \u27fc 3\r\n    \"master\"                          \u27fc 2\r\n    \"mistress\"                        \u27fc 4\r\n    \"passion\"                         \u27fc 1\r\n    \"heart\"                           \u27fc 50\r\n    \"acquainted\"                      \u27fc 2\r\n    \"shifting\"                        \u27fc 1\r\n    \"false\"                           \u27fc 18\r\n    \"women's\"                         \u27fc 3\r\n    \"fashion\"                         \u27fc 2\r\n    \"theirs\"                          \u27fc 2\r\n    \"rolling\"                         \u27fc 1\r\n    \"gilding\"                         \u27fc 2\r\n    \"object\"                          \u27fc 1\r\n    \"whereupon\"                       \u27fc 1\r\n    \"gazeth\"                          \u27fc 1\r\n    \"man\"                             \u27fc 5\r\n    \"hue\"                             \u27fc 5\r\n    \"'hues'\"                          \u27fc 1\r\n    \"controlling\"                     \u27fc 1\r\n    \"steals\"                          \u27fc 1\r\n    \"men's\"                           \u27fc 5\r\n    \"souls\"                           \u27fc 1\r\n    \"amazeth\"                         \u27fc 1\r\n    \"woman\"                           \u27fc 3\r\n    \"wert\"                            \u27fc 3\r\n    \"first\"                           \u27fc 12\r\n    \"created\"                         \u27fc 2\r\n    \"till\"                            \u27fc 14\r\n    \"wrought\"                         \u27fc 2\r\n    \"fell\"                            \u27fc 5\r\n    \"a-doting\"                        \u27fc 1\r\n    \"addition\"                        \u27fc 2\r\n    \"defeated\"                        \u27fc 1\r\n    \"adding\"                          \u27fc 1\r\n    \"purpose\"                         \u27fc 5\r\n    \"prick'd\"                         \u27fc 1\r\n    \"xxi\"                             \u27fc 1\r\n    \"muse\"                            \u27fc 16\r\n    \"stirr'd\"                         \u27fc 1\r\n    \"itself\"                          \u27fc 7\r\n    \"rehearse\"                        \u27fc 4\r\n    \"couplement\"                      \u27fc 1\r\n    \"compare'\"                        \u27fc 1\r\n    \"sun\"                             \u27fc 11\r\n    \"moon\"                            \u27fc 3\r\n    \"sea's\"                           \u27fc 1\r\n    \"gems\"                            \u27fc 1\r\n    \"april's\"                         \u27fc 1\r\n    \"first-born\"                      \u27fc 1\r\n    \"things\"                          \u27fc 14\r\n    \"rare\"                            \u27fc 4\r\n    \"heaven's\"                        \u27fc 6\r\n    \"air\"                             \u27fc 4\r\n    \"rondure\"                         \u27fc 1\r\n    \"hems\"                            \u27fc 1\r\n    \"truly\"                           \u27fc 5\r\n    \"candles\"                         \u27fc 1\r\n    \"fix'd\"                           \u27fc 2\r\n    \"hearsay\"                         \u27fc 1\r\n    \"sell\"                            \u27fc 1\r\n    \"xxii\"                            \u27fc 1\r\n    \"persuade\"                        \u27fc 1\r\n    \"am\"                              \u27fc 35\r\n    \"furrows\"                         \u27fc 1\r\n    \"expiate\"                         \u27fc 1\r\n    \"cover\"                           \u27fc 3\r\n    \"seemly\"                          \u27fc 1\r\n    \"raiment\"                         \u27fc 1\r\n    \"breast\"                          \u27fc 7\r\n    \"elder\"                           \u27fc 1\r\n    \"therefore\"                       \u27fc 17\r\n    \"wary\"                            \u27fc 1\r\n    \"myself\"                          \u27fc 20\r\n    \"bearing\"                         \u27fc 3\r\n    \"chary\"                           \u27fc 1\r\n    \"nurse\"                           \u27fc 1\r\n    \"babe\"                            \u27fc 4\r\n    \"faring\"                          \u27fc 1\r\n    \"ill\"                             \u27fc 18\r\n    \"presume\"                         \u27fc 1\r\n    \"slain\"                           \u27fc 2\r\n    \"gav'st\"                          \u27fc 3\r\n    \"xxiii\"                           \u27fc 1\r\n    \"unperfect\"                       \u27fc 1\r\n    \"actor\"                           \u27fc 1\r\n    \"put\"                             \u27fc 7\r\n    \"beside\"                          \u27fc 2\r\n    \"part\"                            \u27fc 20\r\n    \"replete\"                         \u27fc 2\r\n    \"strength's\"                      \u27fc 1\r\n    \"weakens\"                         \u27fc 1\r\n    \"trust\"                           \u27fc 5\r\n    \"forget\"                          \u27fc 2\r\n    \"perfect\"                         \u27fc 2\r\n    \"ceremony\"                        \u27fc 1\r\n    \"rite\"                            \u27fc 1\r\n    \"strength\"                        \u27fc 5\r\n    \"seem\"                            \u27fc 12\r\n    \"o'ercharg'd\"                     \u27fc 1\r\n    \"burthen\"                         \u27fc 2\r\n    \"eloquence\"                       \u27fc 1\r\n    \"dumb\"                            \u27fc 6\r\n    \"presagers\"                       \u27fc 1\r\n    \"speaking\"                        \u27fc 4\r\n    \"plead\"                           \u27fc 2\r\n    \"recompense\"                      \u27fc 1\r\n    \"express'd\"                       \u27fc 3\r\n    \"learn\"                           \u27fc 2\r\n    \"silent\"                          \u27fc 2\r\n    \"writ\"                            \u27fc 6\r\n    \"belongs\"                         \u27fc 2\r\n    \"fine\"                            \u27fc 2\r\n    \"wit\"                             \u27fc 6\r\n    \"xxiv\"                            \u27fc 1\r\n    \"play'd\"                          \u27fc 1\r\n    \"painter\"                         \u27fc 2\r\n    \"stell'd\"                         \u27fc 1\r\n    \"table\"                           \u27fc 1\r\n    \"body\"                            \u27fc 4\r\n    \"wherein\"                         \u27fc 5\r\n    \"'tis\"                            \u27fc 11\r\n    \"perspective\"                     \u27fc 1\r\n    \"painter's\"                       \u27fc 1\r\n    \"pictur'd\"                        \u27fc 1\r\n    \"bosom's\"                         \u27fc 2\r\n    \"shop\"                            \u27fc 1\r\n    \"hanging\"                         \u27fc 1\r\n    \"glazed\"                          \u27fc 1\r\n    \"turns\"                           \u27fc 4\r\n    \"done\"                            \u27fc 5\r\n    \"where-through\"                   \u27fc 1\r\n    \"peep\"                            \u27fc 1\r\n    \"therein\"                         \u27fc 3\r\n    \"cunning\"                         \u27fc 3\r\n    \"want\"                            \u27fc 4\r\n    \"grace\"                           \u27fc 11\r\n    \"xxv\"                             \u27fc 1\r\n    \"favour\"                          \u27fc 3\r\n    \"public\"                          \u27fc 4\r\n    \"titles\"                          \u27fc 1\r\n    \"boast\"                           \u27fc 5\r\n    \"whilst\"                          \u27fc 13\r\n    \"triumph\"                         \u27fc 3\r\n    \"bars\"                            \u27fc 2\r\n    \"princes'\"                        \u27fc 1\r\n    \"favourites\"                      \u27fc 1\r\n    \"spread\"                          \u27fc 1\r\n    \"marigold\"                        \u27fc 1\r\n    \"sun's\"                           \u27fc 1\r\n    \"pride\"                           \u27fc 11\r\n    \"buried\"                          \u27fc 5\r\n    \"frown\"                           \u27fc 3\r\n    \"glory\"                           \u27fc 8\r\n    \"painful\"                         \u27fc 1\r\n    \"warrior\"                         \u27fc 1\r\n    \"famoused\"                        \u27fc 1\r\n    \"fight\"                           \u27fc 3\r\n    \"thousand\"                        \u27fc 3\r\n    \"victories\"                       \u27fc 1\r\n    \"once\"                            \u27fc 10\r\n    \"foil'd\"                          \u27fc 1\r\n    \"book\"                            \u27fc 6\r\n    \"razed\"                           \u27fc 1\r\n    \"rest\"                            \u27fc 6\r\n    \"forgot\"                          \u27fc 4\r\n    \"toil'd\"                          \u27fc 1\r\n    \"remove\"                          \u27fc 2\r\n    \"remov'd\"                         \u27fc 3\r\n    \"xxvi\"                            \u27fc 1\r\n    \"lord\"                            \u27fc 1\r\n    \"vassalage\"                       \u27fc 1\r\n    \"merit\"                           \u27fc 5\r\n    \"duty\"                            \u27fc 3\r\n    \"strongly\"                        \u27fc 2\r\n    \"knit\"                            \u27fc 1\r\n    \"send\"                            \u27fc 2\r\n    \"written\"                         \u27fc 1\r\n    \"embassage\"                       \u27fc 1\r\n    \"witness\"                         \u27fc 3\r\n    \"poor\"                            \u27fc 15\r\n    \"bare\"                            \u27fc 4\r\n    \"wanting\"                         \u27fc 2\r\n    \"words\"                           \u27fc 10\r\n    \"hope\"                            \u27fc 6\r\n    \"soul's\"                          \u27fc 2\r\n    \"naked\"                           \u27fc 1\r\n    \"bestow\"                          \u27fc 1\r\n    \"whatsoever\"                      \u27fc 1\r\n    \"star\"                            \u27fc 3\r\n    \"guides\"                          \u27fc 1\r\n    \"moving\"                          \u27fc 2\r\n    \"points\"                          \u27fc 1\r\n    \"graciously\"                      \u27fc 1\r\n    \"aspect\"                          \u27fc 1\r\n    \"puts\"                            \u27fc 1\r\n    \"apparel\"                         \u27fc 1\r\n    \"loving\"                          \u27fc 9\r\n    \"worthy\"                          \u27fc 5\r\n    \"respect\"                         \u27fc 4\r\n    \"dare\"                            \u27fc 4\r\n    \"xxvii\"                           \u27fc 1\r\n    \"toil\"                            \u27fc 4\r\n    \"haste\"                           \u27fc 3\r\n    \"bed\"                             \u27fc 1\r\n    \"respose\"                         \u27fc 1\r\n    \"limbs\"                           \u27fc 2\r\n    \"travel\"                          \u27fc 2\r\n    \"tir'd\"                           \u27fc 2\r\n    \"begins\"                          \u27fc 1\r\n    \"journey\"                         \u27fc 2\r\n    \"body's\"                          \u27fc 4\r\n    \"work's\"                          \u27fc 1\r\n    \"expired\"                         \u27fc 1\r\n    \"thoughts--from\"                  \u27fc 1\r\n    \"far\"                             \u27fc 16\r\n    \"abide--\"                         \u27fc 1\r\n    \"intend\"                          \u27fc 1\r\n    \"zealous\"                         \u27fc 1\r\n    \"drooping\"                        \u27fc 1\r\n    \"eyelids\"                         \u27fc 2\r\n    \"open\"                            \u27fc 2\r\n    \"looking\"                         \u27fc 3\r\n    \"darkness\"                        \u27fc 1\r\n    \"blind\"                           \u27fc 6\r\n    \"imaginary\"                       \u27fc 1\r\n    \"presents\"                        \u27fc 1\r\n    \"shadow\"                          \u27fc 7\r\n    \"sightless\"                       \u27fc 2\r\n    \"view\"                            \u27fc 8\r\n    \"jewel\"                           \u27fc 4\r\n    \"(hung\"                           \u27fc 1\r\n    \"ghastly\"                         \u27fc 1\r\n    \"makes\"                           \u27fc 8\r\n    \"black\"                           \u27fc 13\r\n    \"thus\"                            \u27fc 21\r\n    \"quiet\"                           \u27fc 1\r\n    \"xxviii\"                          \u27fc 1\r\n    \"return\"                          \u27fc 6\r\n    \"plight\"                          \u27fc 1\r\n    \"debarre'd\"                       \u27fc 1\r\n    \"benefit\"                         \u27fc 2\r\n    \"day's\"                           \u27fc 1\r\n    \"oppression\"                      \u27fc 1\r\n    \"eas'd\"                           \u27fc 1\r\n    \"oppress'd\"                       \u27fc 2\r\n    \"enemies\"                         \u27fc 2\r\n    \"either's\"                        \u27fc 2\r\n    \"reign\"                           \u27fc 2\r\n    \"consent\"                         \u27fc 1\r\n    \"hands\"                           \u27fc 2\r\n    \"torture\"                         \u27fc 2\r\n    \"complain\"                        \u27fc 1\r\n    \"farther\"                         \u27fc 4\r\n    \"off\"                             \u27fc 2\r\n    \"please\"                          \u27fc 4\r\n    \"clouds\"                          \u27fc 4\r\n    \"blot\"                            \u27fc 3\r\n    \"flatter\"                         \u27fc 3\r\n    \"swart-complexion'd\"              \u27fc 1\r\n    \"sparkling\"                       \u27fc 1\r\n    \"twire\"                           \u27fc 1\r\n    \"gild'st\"                         \u27fc 1\r\n    \"daily\"                           \u27fc 3\r\n    \"sorrows\"                         \u27fc 2\r\n    \"nightly\"                         \u27fc 2\r\n    \"grief's\"                         \u27fc 1\r\n    \"length\"                          \u27fc 1\r\n    \"stronger\"                        \u27fc 2\r\n    \"xxix\"                            \u27fc 1\r\n    \"disgrace\"                        \u27fc 8\r\n    \"beweep\"                          \u27fc 1\r\n    \"outcast\"                         \u27fc 1\r\n    \"trouble\"                         \u27fc 1\r\n    \"deaf\"                            \u27fc 1\r\n    \"bootless\"                        \u27fc 1\r\n    \"cries\"                           \u27fc 2\r\n    \"curse\"                           \u27fc 2\r\n    \"fate\"                            \u27fc 1\r\n    \"wishing\"                         \u27fc 1\r\n    \"featur'd\"                        \u27fc 1\r\n    \"friends\"                         \u27fc 3\r\n    \"desiring\"                        \u27fc 1\r\n    \"man's\"                           \u27fc 2\r\n    \"scope\"                           \u27fc 5\r\n    \"enjoy\"                           \u27fc 1\r\n    \"contented\"                       \u27fc 3\r\n    \"these\"                           \u27fc 22\r\n    \"thoughts\"                        \u27fc 17\r\n    \"almost\"                          \u27fc 3\r\n    \"despising\"                       \u27fc 1\r\n    \"haply\"                           \u27fc 3\r\n    \"think\"                           \u27fc 15\r\n    \"--\"                              \u27fc 12\r\n    \"lark\"                            \u27fc 1\r\n    \"break\"                           \u27fc 4\r\n    \"arising\"                         \u27fc 1\r\n    \"sullen\"                          \u27fc 2\r\n    \"hymns\"                           \u27fc 2\r\n    \"gate\"                            \u27fc 1\r\n    \"wealth\"                          \u27fc 6\r\n    \"brings\"                          \u27fc 2\r\n    \"scorn\"                           \u27fc 2\r\n    \"kings\"                           \u27fc 2\r\n    \"xxx\"                             \u27fc 1\r\n    \"sessions\"                        \u27fc 1\r\n    \"summon\"                          \u27fc 1\r\n    \"sigh\"                            \u27fc 1\r\n    \"lack\"                            \u27fc 4\r\n    \"sought\"                          \u27fc 1\r\n    \"woes\"                            \u27fc 1\r\n    \"drown\"                           \u27fc 1\r\n    \"flow\"                            \u27fc 1\r\n    \"precious\"                        \u27fc 6\r\n    \"hid\"                             \u27fc 2\r\n    \"dateless\"                        \u27fc 2\r\n    \"afresh\"                          \u27fc 1\r\n    \"cancell'd\"                       \u27fc 1\r\n    \"woe\"                             \u27fc 12\r\n    \"moan\"                            \u27fc 5\r\n    \"expense\"                         \u27fc 3\r\n    \"vanish'd\"                        \u27fc 1\r\n    \"grieve\"                          \u27fc 1\r\n    \"grievances\"                      \u27fc 1\r\n    \"foregone\"                        \u27fc 1\r\n    \"heavily\"                         \u27fc 2\r\n    \"sad\"                             \u27fc 7\r\n    \"account\"                         \u27fc 4\r\n    \"fore-bemoaned\"                   \u27fc 1\r\n    \"paid\"                            \u27fc 1\r\n    \"while\"                           \u27fc 6\r\n    \"friend\"                          \u27fc 14\r\n    \"losses\"                          \u27fc 1\r\n    \"restor'd\"                        \u27fc 1\r\n    \"xxxi\"                            \u27fc 1\r\n    \"endeared\"                        \u27fc 1\r\n    \"hearts\"                          \u27fc 4\r\n    \"lacking\"                         \u27fc 1\r\n    \"supposed\"                        \u27fc 2\r\n    \"dead\"                            \u27fc 16\r\n    \"reigns\"                          \u27fc 1\r\n    \"holy\"                            \u27fc 4\r\n    \"obsequious\"                      \u27fc 2\r\n    \"tear\"                            \u27fc 1\r\n    \"religious\"                       \u27fc 1\r\n    \"stol'n\"                          \u27fc 5\r\n    \"interest\"                        \u27fc 2\r\n    \"appear\"                          \u27fc 4\r\n    \"hidden\"                          \u27fc 1\r\n    \"lie\"                             \u27fc 13\r\n    \"hung\"                            \u27fc 1\r\n    \"trophies\"                        \u27fc 1\r\n    \"lovers\"                          \u27fc 2\r\n    \"images\"                          \u27fc 1\r\n    \"lov'd\"                           \u27fc 4\r\n    \"thou--all\"                       \u27fc 1\r\n    \"they--hast\"                      \u27fc 1\r\n    \"xxxii\"                           \u27fc 1\r\n    \"survive\"                         \u27fc 2\r\n    \"well-contented\"                  \u27fc 1\r\n    \"bones\"                           \u27fc 1\r\n    \"dust\"                            \u27fc 2\r\n    \"re-survey\"                       \u27fc 1\r\n    \"deceased\"                        \u27fc 2\r\n    \"lover\"                           \u27fc 1\r\n    \"bett'ring\"                       \u27fc 1\r\n    \"outstripp'd\"                     \u27fc 1\r\n    \"reserve\"                         \u27fc 2\r\n    \"exceeded\"                        \u27fc 1\r\n    \"vouchsafe\"                       \u27fc 2\r\n    \"'had\"                            \u27fc 1\r\n    \"friend's\"                        \u27fc 2\r\n    \"grown\"                           \u27fc 4\r\n    \"growing\"                         \u27fc 3\r\n    \"dearer\"                          \u27fc 2\r\n    \"birth\"                           \u27fc 5\r\n    \"brought\"                         \u27fc 3\r\n    \"march\"                           \u27fc 1\r\n    \"ranks\"                           \u27fc 1\r\n    \"better\"                          \u27fc 19\r\n    \"equipage\"                        \u27fc 1\r\n    \"died\"                            \u27fc 2\r\n    \"poets\"                           \u27fc 2\r\n    \"style\"                           \u27fc 3\r\n    \"i'll\"                            \u27fc 7\r\n    \"love'\"                           \u27fc 1\r\n    \"xxxiii\"                          \u27fc 1\r\n    \"full\"                            \u27fc 13\r\n    \"glorious\"                        \u27fc 1\r\n    \"morning\"                         \u27fc 2\r\n    \"seen\"                            \u27fc 11\r\n    \"mountain\"                        \u27fc 2\r\n    \"tops\"                            \u27fc 1\r\n    \"sovereign\"                       \u27fc 4\r\n    \"kissing\"                         \u27fc 1\r\n    \"meadows\"                         \u27fc 1\r\n    \"pale\"                            \u27fc 2\r\n    \"streams\"                         \u27fc 1\r\n    \"alchemy\"                         \u27fc 2\r\n    \"anon\"                            \u27fc 2\r\n    \"permit\"                          \u27fc 1\r\n    \"basest\"                          \u27fc 3\r\n    \"ride\"                            \u27fc 3\r\n    \"ugly\"                            \u27fc 1\r\n    \"rack\"                            \u27fc 1\r\n    \"celestial\"                       \u27fc 1\r\n    \"forlorn\"                         \u27fc 1\r\n    \"visage\"                          \u27fc 1\r\n    \"hide\"                            \u27fc 5\r\n    \"stealing\"                        \u27fc 2\r\n    \"unseen\"                          \u27fc 2\r\n    \"west\"                            \u27fc 3\r\n    \"early\"                           \u27fc 1\r\n    \"morn\"                            \u27fc 2\r\n    \"shine\"                           \u27fc 4\r\n    \"triumphant\"                      \u27fc 2\r\n    \"splendour\"                       \u27fc 1\r\n    \"alack\"                           \u27fc 3\r\n    \"hour\"                            \u27fc 4\r\n    \"region\"                          \u27fc 1\r\n    \"cloud\"                           \u27fc 2\r\n    \"mask'd\"                          \u27fc 2\r\n    \"whit\"                            \u27fc 1\r\n    \"disdaineth\"                      \u27fc 1\r\n    \"suns\"                            \u27fc 1\r\n    \"stain\"                           \u27fc 3\r\n    \"staineth\"                        \u27fc 1\r\n    \"xxxiv\"                           \u27fc 1\r\n    \"didst\"                           \u27fc 3\r\n    \"promise\"                         \u27fc 1\r\n    \"forth\"                           \u27fc 7\r\n    \"cloak\"                           \u27fc 1\r\n    \"base\"                            \u27fc 5\r\n    \"o'ertake\"                        \u27fc 1\r\n    \"hiding\"                          \u27fc 1\r\n    \"bravery\"                         \u27fc 1\r\n    \"rotten\"                          \u27fc 2\r\n    \"smoke\"                           \u27fc 1\r\n    \"enough\"                          \u27fc 6\r\n    \"dry\"                             \u27fc 1\r\n    \"storm-beaten\"                    \u27fc 1\r\n    \"salve\"                           \u27fc 2\r\n    \"speak\"                           \u27fc 8\r\n    \"heals\"                           \u27fc 1\r\n    \"wound\"                           \u27fc 4\r\n    \"cures\"                           \u27fc 1\r\n    \"physic\"                          \u27fc 2\r\n    \"grief\"                           \u27fc 5\r\n    \"repent\"                          \u27fc 1\r\n    \"loss\"                            \u27fc 8\r\n    \"offender's\"                      \u27fc 1\r\n    \"sorrow\"                          \u27fc 5\r\n    \"weak\"                            \u27fc 2\r\n    \"relief\"                          \u27fc 1\r\n    \"bears\"                           \u27fc 3\r\n    \"offence's\"                       \u27fc 1\r\n    \"cross\"                           \u27fc 3\r\n    \"tears\"                           \u27fc 5\r\n    \"pearl\"                           \u27fc 1\r\n    \"sheds\"                           \u27fc 1\r\n    \"ransom\"                          \u27fc 2\r\n    \"deeds\"                           \u27fc 10\r\n    \"xxxv\"                            \u27fc 1\r\n    \"griev'd\"                         \u27fc 1\r\n    \"roses\"                           \u27fc 7\r\n    \"thorns\"                          \u27fc 3\r\n    \"silver\"                          \u27fc 1\r\n    \"fountains\"                       \u27fc 1\r\n    \"mud\"                             \u27fc 1\r\n    \"eclipses\"                        \u27fc 2\r\n    \"both\"                            \u27fc 17\r\n    \"loathsome\"                       \u27fc 1\r\n    \"canker\"                          \u27fc 5\r\n    \"sweetest\"                        \u27fc 5\r\n    \"faults\"                          \u27fc 8\r\n    \"authorizing\"                     \u27fc 1\r\n    \"trespass\"                        \u27fc 2\r\n    \"corrupting\"                      \u27fc 1\r\n    \"salving\"                         \u27fc 1\r\n    \"amiss\"                           \u27fc 3\r\n    \"excusing\"                        \u27fc 1\r\n    \"sins\"                            \u27fc 3\r\n    \"sensual\"                         \u27fc 2\r\n    \"fault\"                           \u27fc 3\r\n    \"bring\"                           \u27fc 8\r\n    \"sense\"                           \u27fc 4\r\n    \"adverse\"                         \u27fc 1\r\n    \"party\"                           \u27fc 1\r\n    \"advocate\"                        \u27fc 1\r\n    \"lawful\"                          \u27fc 3\r\n    \"plea\"                            \u27fc 3\r\n    \"commence\"                        \u27fc 1\r\n    \"civil\"                           \u27fc 1\r\n    \"accessary\"                       \u27fc 1\r\n    \"needs\"                           \u27fc 5\r\n    \"thief\"                           \u27fc 4\r\n    \"sourly\"                          \u27fc 2\r\n    \"robs\"                            \u27fc 2\r\n    \"xxxvi\"                           \u27fc 1\r\n    \"confess\"                         \u27fc 1\r\n    \"two\"                             \u27fc 9\r\n    \"twain\"                           \u27fc 3\r\n    \"although\"                        \u27fc 9\r\n    \"our\"                             \u27fc 18\r\n    \"undivided\"                       \u27fc 1\r\n    \"loves\"                           \u27fc 8\r\n    \"blots\"                           \u27fc 1\r\n    \"remain\"                          \u27fc 3\r\n    \"help\"                            \u27fc 4\r\n    \"separable\"                       \u27fc 1\r\n    \"spite\"                           \u27fc 5\r\n    \"alter\"                           \u27fc 1\r\n    \"sole\"                            \u27fc 1\r\n    \"steal\"                           \u27fc 6\r\n    \"delight\"                         \u27fc 8\r\n    \"evermore\"                        \u27fc 3\r\n    \"acknowledge\"                     \u27fc 1\r\n    \"lest\"                            \u27fc 8\r\n    \"bewailed\"                        \u27fc 1\r\n    \"guilt\"                           \u27fc 1\r\n    \"kindness\"                        \u27fc 2\r\n    \"take\"                            \u27fc 13\r\n    \"name\"                            \u27fc 17\r\n    \"sort\"                            \u27fc 2\r\n    \"report\"                          \u27fc 4\r\n    \"xxxvii\"                          \u27fc 1\r\n    \"decrepit\"                        \u27fc 1\r\n    \"active\"                          \u27fc 1\r\n    \"lame\"                            \u27fc 2\r\n    \"fortune's\"                       \u27fc 3\r\n    \"dearest\"                         \u27fc 3\r\n    \"comfort\"                         \u27fc 4\r\n    \"whether\"                         \u27fc 5\r\n    \"entitled\"                        \u27fc 1\r\n    \"crowned\"                         \u27fc 1\r\n    \"sit\"                             \u27fc 2\r\n    \"engrafted\"                       \u27fc 1\r\n    \"despis'd\"                        \u27fc 1\r\n    \"suffic'd\"                        \u27fc 1\r\n    \"xxxviii\"                         \u27fc 1\r\n    \"subject\"                         \u27fc 5\r\n    \"invent\"                          \u27fc 2\r\n    \"pour'st\"                         \u27fc 1\r\n    \"into\"                            \u27fc 5\r\n    \"argument\"                        \u27fc 6\r\n    \"excellent\"                       \u27fc 1\r\n    \"vulgar\"                          \u27fc 3\r\n    \"paper\"                           \u27fc 1\r\n    \"thanks\"                          \u27fc 1\r\n    \"aught\"                           \u27fc 2\r\n    \"perusal\"                         \u27fc 1\r\n    \"who's\"                           \u27fc 1\r\n    \"cannot\"                          \u27fc 10\r\n    \"invention\"                       \u27fc 5\r\n    \"tenth\"                           \u27fc 1\r\n    \"nine\"                            \u27fc 1\r\n    \"rhymers\"                         \u27fc 1\r\n    \"invocate\"                        \u27fc 1\r\n    \"outlive\"                         \u27fc 3\r\n    \"slight\"                          \u27fc 2\r\n    \"curious\"                         \u27fc 1\r\n    \"pain\"                            \u27fc 5\r\n    \"xxxix\"                           \u27fc 1\r\n    \"manners\"                         \u27fc 3\r\n    \"is't\"                            \u27fc 2\r\n    \"us\"                              \u27fc 2\r\n    \"divided\"                         \u27fc 1\r\n    \"separation\"                      \u27fc 1\r\n    \"deserv'st\"                       \u27fc 1\r\n    \"absence\"                         \u27fc 5\r\n    \"torment\"                         \u27fc 3\r\n    \"sour\"                            \u27fc 2\r\n    \"leisure\"                         \u27fc 4\r\n    \"entertain\"                       \u27fc 1<div class=\"verticalEllipsis\" style=\"white-space: pre; font-style: normal; color: rgb(33, 33, 33); font-size: 12px;\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Our dictionary has 3436 entries which is equal to the number of unique words we found earlier.  This gives us some confidence that we are heading in the right direction. As another check, we could sum all of the values and see that they equal the total number of words we found earlier<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >numberOfWords=sum(values(d))<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>numberOfWords = 17712<\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span> It turns out that Mr Shakespeare talked about love a lot more than hate!<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 4px 4px 0px 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d(<\/span><span style=\"color: rgb(167, 9, 245);\">\"love\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 160<\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><div  style = 'border-left: 1px solid rgb(191, 191, 191); border-right: 1px solid rgb(191, 191, 191); border-top: 1px solid rgb(191, 191, 191); border-bottom: 1px solid rgb(191, 191, 191); border-radius: 0px; padding: 6px 45px 4px 13px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; '><span style=\"white-space: pre\"><span >d(<\/span><span style=\"color: rgb(167, 9, 245);\">\"hate\"<\/span><span >)<\/span><\/span><\/div><div  style = 'color: rgb(33, 33, 33); padding: 10px 0px 6px 17px; background: rgb(255, 255, 255) none repeat scroll 0% 0% \/ auto padding-box border-box; font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; overflow-x: hidden; line-height: 17.234px; '><div class='variableElement' style='font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; '>ans = 13<\/div><\/div><\/div><\/div><h3  style = 'margin: 3px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; ' id = 'H_59C53D86' ><span style=' font-weight: bold;'>Next time<\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>That's it for our first look at this new datatype in MATLAB.  This is the first of three posts on the subject of dictionaries. In the next two posts I'll take a deep dive into the different types you can use in dictionaries, including user-defined classes and will also compare the new functionality with the venerable <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/ref\/containers.map.html\"><span>containers.map<\/span><\/a><span>. Let me know what you think and enjoy playing with the new version of MATLAB.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = '\/* Styling that is common to warnings and errors is in diagnosticOutput.css *\/.embeddedOutputsErrorElement {    min-height: 18px;    max-height: 550px;} .embeddedOutputsErrorElement .diagnosticMessage-errorType {    overflow: auto;} .embeddedOutputsErrorElement.inlineElement {} .embeddedOutputsErrorElement.rightPaneElement {} \/* Styling that is common to warnings and errors is in diagnosticOutput.css *\/.embeddedOutputsWarningElement {    min-height: 18px;    max-height: 550px;} .embeddedOutputsWarningElement .diagnosticMessage-warningType {    overflow: auto;} .embeddedOutputsWarningElement.inlineElement {} .embeddedOutputsWarningElement.rightPaneElement {} \/* Copyright 2015-2019 The MathWorks, Inc. *\/\/* In this file, styles are not scoped to rtcContainer since they could be in the Dojo Tooltip *\/.diagnosticMessage-wrapper {    font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;    font-size: 12px;} .diagnosticMessage-wrapper.diagnosticMessage-warningType {    color: rgb(255,100,0);} .diagnosticMessage-wrapper.diagnosticMessage-warningType a {    color: rgb(255,100,0);    text-decoration: underline;} .diagnosticMessage-wrapper.diagnosticMessage-errorType {    color: rgb(230,0,0);} .diagnosticMessage-wrapper.diagnosticMessage-errorType a {    color: rgb(230,0,0);    text-decoration: underline;} .diagnosticMessage-wrapper .diagnosticMessage-messagePart,.diagnosticMessage-wrapper .diagnosticMessage-causePart {    white-space: pre-wrap;} .diagnosticMessage-wrapper .diagnosticMessage-stackPart {    white-space: pre;} .embeddedOutputsTextElement,.embeddedOutputsVariableStringElement {    white-space: pre;    word-wrap:  initial;    min-height: 18px;    max-height: 550px;} .embeddedOutputsTextElement .textElement,.embeddedOutputsVariableStringElement .textElement {    overflow: auto;} .textElement,.rtcDataTipElement .textElement {    padding-top: 2px;} .embeddedOutputsTextElement.inlineElement,.embeddedOutputsVariableStringElement.inlineElement {} .inlineElement .textElement {} .embeddedOutputsTextElement.rightPaneElement,.embeddedOutputsVariableStringElement.rightPaneElement {    min-height: 16px;} .rightPaneElement .textElement {    padding-top: 2px;    padding-left: 9px;} .embeddedOutputsMatrixElement,.eoOutputWrapper .matrixElement {    min-height: 18px;    box-sizing: border-box;} .embeddedOutputsMatrixElement .matrixElement,.eoOutputWrapper  .matrixElement,.rtcDataTipElement .matrixElement {    position: relative;} .matrixElement .variableValue,.rtcDataTipElement .matrixElement .variableValue {    white-space: pre;    display: inline-block;    vertical-align: top;    overflow: hidden;} .embeddedOutputsMatrixElement.inlineElement {} .embeddedOutputsMatrixElement.inlineElement .topHeaderWrapper {    display: none;} .embeddedOutputsMatrixElement.inlineElement .veTable .body {    padding-top: 0 !important;    max-height: 100px;} .inlineElement .matrixElement {    max-height: 300px;} .embeddedOutputsMatrixElement.rightPaneElement {} .rightPaneElement .matrixElement,.rtcDataTipElement .matrixElement {    overflow: hidden;    padding-left: 9px;} .rightPaneElement .matrixElement {    margin-bottom: -1px;} .embeddedOutputsMatrixElement .matrixElement .valueContainer,.eoOutputWrapper .matrixElement .valueContainer,.rtcDataTipElement .matrixElement .valueContainer {    white-space: nowrap;    margin-bottom: 3px;} .embeddedOutputsMatrixElement .matrixElement .valueContainer .horizontalEllipsis.hide,.embeddedOutputsMatrixElement .matrixElement .verticalEllipsis.hide,.eoOutputWrapper .matrixElement .valueContainer .horizontalEllipsis.hide,.eoOutputWrapper .matrixElement .verticalEllipsis.hide,.rtcDataTipElement .matrixElement .valueContainer .horizontalEllipsis.hide,.rtcDataTipElement .matrixElement .verticalEllipsis.hide {    display: none;} .embeddedOutputsVariableMatrixElement .matrixElement .valueContainer.hideEllipses .verticalEllipsis, .embeddedOutputsVariableMatrixElement .matrixElement .valueContainer.hideEllipses .horizontalEllipsis {    display:none;} .embeddedOutputsMatrixElement .matrixElement .valueContainer .horizontalEllipsis,.eoOutputWrapper .matrixElement .valueContainer .horizontalEllipsis {    margin-bottom: -3px;} .eoOutputWrapper .embeddedOutputsVariableMatrixElement .matrixElement .valueContainer {    cursor: default !important;} .embeddedOutputsVariableElement {    white-space: pre-wrap;    word-wrap: break-word;    min-height: 18px;    max-height: 250px;    overflow: auto;} .variableElement {} .embeddedOutputsVariableElement.inlineElement {} .inlineElement .variableElement {} .embeddedOutputsVariableElement.rightPaneElement {    min-height: 16px;} .rightPaneElement .variableElement {    padding-top: 2px;    padding-left: 9px;} .outputsOnRight .embeddedOutputsVariableElement.rightPaneElement .eoOutputContent {    \/* Remove extra space allocated for navigation border *\/    margin-top: 0;    margin-bottom: 0;} .variableNameElement {    margin-bottom: 3px;    display: inline-block;} \/* * Ellipses as base64 for HTML export. *\/.matrixElement .horizontalEllipsis,.rtcDataTipElement .matrixElement .horizontalEllipsis {    display: inline-block;    margin-top: 3px;    \/* base64 encoded version of images-liveeditor\/HEllipsis.png *\/    width: 30px;    height: 12px;    background-repeat: no-repeat;    background-image: url(\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAJCAYAAADO1CeCAAAAJUlEQVR42mP4\/\/8\/A70xw0i29BUDFPxnAEtTW37wWDqakIa4pQDvOOG89lHX2gAAAABJRU5ErkJggg==\");} .matrixElement .verticalEllipsis,.textElement .verticalEllipsis,.rtcDataTipElement .matrixElement .verticalEllipsis,.rtcDataTipElement .textElement .verticalEllipsis {    margin-left: 35px;    \/* base64 encoded version of images-liveeditor\/VEllipsis.png *\/    width: 12px;    height: 30px;    background-repeat: no-repeat;    background-image: url(\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAZCAYAAAAIcL+IAAAALklEQVR42mP4\/\/8\/AzGYgWyFMECMwv8QddRS+P\/\/KyimlmcGUOFoOI6GI\/UVAgDnd8Dd4+NCwgAAAABJRU5ErkJggg==\");} .embeddedOutputsVariableTableElement .ClientViewDiv  table tr {  height: 22px;  white-space: nowrap;} .embeddedOutputsVariableTableElement .ClientViewDiv  table tr td,.embeddedOutputsVariableTableElement .ClientViewDiv  table tr th {  background-color:white;  text-overflow: ellipsis;  font-family: Arial, sans-serif;  font-size: 12px;  overflow : hidden;} .embeddedOutputsVariableTableElement .ClientViewDiv  table tr span {  text-overflow: ellipsis;  padding: 3px;} .embeddedOutputsVariableTableElement .ClientViewDiv  table tr th {    color: rgba(0,0,0,0.5);  padding: 3px;  font-size: 9px;}'; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script><a href=\"https:\/\/blogs.mathworks.com\/matlab\/files\/2022\/09\/Dictionary2022b.mlx\"><button class=\"btn btn-sm btn_color_blue pull-right add_margin_10\">Download Live Script<\/button><\/a>","protected":false},"excerpt":{"rendered":"<p>Dictionaries are one of the many new features of MATLAB R2022b which was released yesterday.  Today I'll take a look at some of the details of this new datatype in MATLAB.A dictionary is a collection... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/matlab\/2022\/09\/15\/an-introduction-to-dictionaries-associative-arrays-in-matlab\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,20],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/374"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/users\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":15,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":594,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/374\/revisions\/594"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}