{"id":4421,"date":"2026-10-12T03:21:44","date_gmt":"2026-10-12T07:21:44","guid":{"rendered":"https:\/\/blogs.mathworks.com\/matlab\/?p=4421"},"modified":"2026-10-12T03:21:44","modified_gmt":"2026-10-12T07:21:44","slug":"enhanced-output-in-the-matlab-command-window-in-r2026b","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/matlab\/2026\/10\/12\/enhanced-output-in-the-matlab-command-window-in-r2026b\/","title":{"rendered":"Enhanced output in the MATLAB Command Window in R2026b"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">When using MATLAB, I have always been most at home in the command window. I'm kind of old-school that way which is why the release of <\/span><a href=\"https:\/\/blogs.mathworks.com\/matlab\/2026\/06\/03\/introducing-terminal-in-matlab\/\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\">MATLAB's Terminal<\/span><\/a><span class=\"_richTextNode\"> made me so excited. Give me the command window, with the editor alongside it, and I shall move the world!<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">As such, I was very happy when some of my fellow MathWorkers reached out to me and said 'The command window is evolving, go check it out.'  So I did! <\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\" style=' font-weight: bold;'>Truncated Matrix Outputs<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">You know that feeling when you create an enormous matrix at the command line and forget to suppress output with a semicolon? <\/span><\/div><div class = 'preformatted-plain' style = 'margin: 10px 3px 10px 55px; padding: 10px 10px 10px 5px; '><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px; line-height: 15.6px; min-height: 16px; white-space: pre; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 12px; text-indent: 0px; '><span style=\"white-space: pre\"><span >a = rand(10000)<\/span><\/span><\/div><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Millions of numbers scrolling by as you hammer CTRL+C to make it stop. Well, that simply doesn't happen any more. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">To demonstrate, I resized my command window so that it could only display a small number of rows and columns and created an enormous matrix.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_1-3.png\" width = \"486\" height = \"345\" alt = \"\" style = \"vertical-align: baseline; width: 486px; height: 345px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">As you can see, MATLAB displayed only the part of the matrix that fit into the window and then gave me the option to show everything. Click on the blue, underlined link and you'll get all of the numbers scrolling by; just like the old days. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">If you right click anywhere on the output you can also choose to copy it to the operating system clipboard or open in the MATLAB variables editor which is often far better than letting all of the numbers scroll by.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_2-1.png\" width = \"507\" height = \"133\" alt = \"\" style = \"vertical-align: baseline; width: 507px; height: 133px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The number of rows and columns shown before truncation depends on the size of your command window so it always looks 'just right'. Overall this is a small quality of life enhancement that has been a source of joy for many of us who use MATLAB daily.<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Markdown in the command window<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The phrase 'This is a game-changer' is over used in the world of technical computing. Every new feature we want to discuss is a 'game-changer' and while this is technically true, some games are more important than others. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">I think this is a big one! The functionality is provided by the new <\/span><a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/markdowndisp.html\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><\/a><span class=\"_richTextNode\"> function that takes Markdown as input and renders it in either the command line or Live Editor.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Here's a screenshot from using it at the command window including lists, equations and formatted text.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_3-1.png\" width = \"853\" height = \"304\" alt = \"\" style = \"vertical-align: baseline; width: 853px; height: 304px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Images are supported too! Here's my cat, Kiwi, posing in the MATLAB Command window courtesy of <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_4-1.png\" width = \"553\" height = \"709\" alt = \"\" style = \"vertical-align: baseline; width: 553px; height: 709px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The version of Markdown used is <\/span><a href=\"https:\/\/github.github.com\/gfm\/\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\">GitHub flavored markdown<\/span><\/a><span class=\"_richTextNode\"> and many things are already supported. Tables, for example:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_5-1.png\" width = \"443\" height = \"392\" alt = \"\" style = \"vertical-align: baseline; width: 443px; height: 392px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">For this first release, however, there are some gaps. Emojis, for example, are not supported<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"wpfixed-code-line\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >markdowndisp(<\/span><span style=\"color: rgb(167, 9, 245);\">\":disappointed:\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><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;   overflow-x: hidden;  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6;\"><div style=\"font-style: normal;  text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: break-word; font-weight: 400; margin: 0; padding: 0;\" class=\"wpfixed-markdown\"><p style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0 0 16px;\">:disappointed:<\/p><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">so we need to resort to different methods<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >sad = char([55357 56862]);<\/span><\/span><\/div><\/div><div class=\"wpfixed-code-line\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >markdowndisp(<\/span><span style=\"color: rgb(167, 9, 245);\">\"Don't be \" <\/span><span >+ sad + <\/span><span style=\"color: rgb(167, 9, 245);\">\"There's always a way\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><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;   overflow-x: hidden;  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6;\"><div style=\"font-style: normal;  text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: break-word; font-weight: 400; margin: 0; padding: 0;\" class=\"wpfixed-markdown\"><p style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0 0 16px;\">Don't be \ud83d\ude1eThere's always a way<\/p><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Please give this new function a try and let us know if its missing anything you need.<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Programmatic markdown in the Live Editor<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Whilst having rich text and graphics in the command window is a novelty, we've had it for years in the Live editor. Indeed, every post at The MATLAB Blog is a MATLAB Live Script that gets converted to WordPress via the <\/span><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/103730-publishing-tool-for-matlab-live-script-to-wordpress?s_tid=answers_rc2-2_p5_MLT\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\">matlab_live_to_wp package<\/span><\/a><span class=\"_richTextNode\">. That's why I get so excited when improvements come to the Live Editor, it directly improves one of my daily workflows. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><span class=\"_richTextNode\"> brings the ability to generate rich output programmatically which will allow for more expressive, automatically generated live scripts.<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >rng <\/span><span style=\"color: rgb(167, 9, 245);\">default<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >tic;a=rand(10000);defaultRandTime=toc;<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >rng <\/span><span style=\"color: rgb(167, 9, 245);\">xoshiro<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >tic;a=rand(10000);xoshiroRandTime=toc;<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >rng <\/span><span style=\"color: rgb(167, 9, 245);\">pcg<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >tic;a=rand(10000);pcgRandTime=toc;<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >markdowndisp(<\/span><span style=\"color: rgb(167, 9, 245);\">\"## Faster Random Numbers\"<\/span><span >+ newline + <\/span><span style=\"color: rgb(167, 9, 245);\">\"For example, when talking about how much faster R2026b's **new random number generators** \" <\/span><span >+ <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\" are compared to MATLAB's default. I can include the computations *directly* in the markdown prose:\" <\/span><span >+ newline + <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"* xoshiro is \" <\/span><span >+ defaultRandTime\/xoshiroRandTime + <\/span><span style=\"color: rgb(167, 9, 245);\">\"x faster\" <\/span><span >+ newline + <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"* pcg is \" <\/span><span >+ defaultRandTime\/pcgRandTime + <\/span><span style=\"color: rgb(167, 9, 245);\">\"x faster\" <\/span><span >+ newline + newline + <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\" on my ~~machine~~ system for large matrices. Your milage may vary and \" <\/span><span >+ <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"you should look at the [compare_rng](https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/181947-comparerng?s_tid=prof_contriblnk) package \" <\/span><span >+ <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><span style=\"color: rgb(0, 128, 19);\"> <\/span><\/span><\/div><\/div><div class=\"wpfixed-code-line\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    <\/span><span style=\"color: rgb(167, 9, 245);\">\"to benchmark them all on your system\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><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;   overflow-x: hidden;  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6;\"><div style=\"font-style: normal;  text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: break-word; font-weight: 400; margin: 0; padding: 0;\" class=\"wpfixed-markdown\"><h2 style=\"font-style: normal;  text-align: start; font-family: Arial, Helvetica, sans-serif;   font-size: 28px; font-weight: 700; line-height: 1.25; margin: 24px 0 16px; padding-bottom: 0.3em; border-bottom: 1px solid #bfbfbf;\">Faster Random Numbers<\/h2><p style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0 0 16px;\">For example, when talking about how much faster R2026b's <strong style=\"font-style: normal;  text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; font-weight: 700;\">new random number generators<\/strong>  are compared to MATLAB's default. I can include the computations <em style=\"font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; font-style: italic;\">directly<\/em> in the markdown prose:<\/p><ul style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0 0 16px; padding-left: 2em;\"><li style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0.25em 0;\">xoshiro is 4.251x faster<\/li><li style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0.25em 0;\">pcg is 4.7457x faster<\/li><\/ul><p style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; margin: 0 0 16px;\">on my <s style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; text-decoration: line-through;\">machine<\/s> system for large matrices. Your milage may vary and you should look at the <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/181947-comparerng?s_tid=prof_contriblnk\" style=\"font-style: normal; font-weight: 400; text-align: start; font-family: Arial, Helvetica, sans-serif; font-size: inherit; line-height: inherit; color: #0969da; text-decoration: none;\" target=\"_self\" rel=\"noopener\">compare_rng<\/a> package to benchmark them all on your system<\/p><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Combine <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><span class=\"_richTextNode\"> with a few <\/span><a href=\"https:\/\/uk.mathworks.com\/help\/matlab\/matlab_prog\/add-interactive-controls-to-a-live-script.html\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\">Live Controls<\/span><\/a><span class=\"_richTextNode\"> and I can now create entire, interactive, rich text computational documents to send to my non-programmer friends. Hide all the code, share via MATLAB Online and they won't need to see a single line of code or even install MATLAB to use my interactive analysis.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">This really does change the game!<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Styled and coloured text in the MATLAB command window using ANSI escape codes<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Yair Altman's superb <\/span><a href=\"https:\/\/uk.mathworks.com\/matlabcentral\/fileexchange\/24093-cprintf-display-formatted-colored-text-in-command-window?s_tid=srchtitle\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\">cprintf command on the File Exchange<\/span><\/a><span class=\"_richTextNode\"> gives an indication of how popular the idea of formatting text in the command window is. This next update is a step towards providing such support natively.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">We now make use of ANSI Control Sequences to do things like this<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_6-1.png\" width = \"486\" height = \"123\" alt = \"\" style = \"vertical-align: baseline; width: 486px; height: 123px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The syntax looks rather arcane, and it is, but its also completely standard. Let's take a closer look at the string in the command<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >fprintf(<\/span><span style=\"color: rgb(167, 9, 245);\">\"\\x1b[1;32m Bold green text\\x1b[0m\\n\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">referring to <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/ANSI_escape_code\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\">ANSI escape code - Wikipedia<\/span><\/a><span class=\"_richTextNode\"> as we go<\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\" style=' font-family: monospace;'>\\x1b<\/span><span class=\"_richTextNode\"> The ESC byte. Essentially this says \"The following bytes are not data, they are a command\"<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\" style=' font-family: monospace;'>[<\/span><span class=\"_richTextNode\"> This is the Control Sequence Introducer<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\" style=' font-family: monospace;'>1;32<\/span><span class=\"_richTextNode\"> These are the arguments to our command. 1 means 'bold' and 32 means 'Green foreground'.<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\" style=' font-family: monospace;'>m<\/span><span class=\"_richTextNode\"> This is the final byte, the opcode. Essentially this is the function we want to run and refers to 'Select Graphics Rendition'<\/span><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Then we have the string we wish to display. Finally, we have another escape sequence <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>\\x1b[0m<\/span><span class=\"_richTextNode\"> which means 'Reset back to normal'<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Here's a list of all of the standard foreground colors and their ANSI codes<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >names = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"black\" \"red\" \"green\" \"yellow\" \"blue\" \"magenta\" \"cyan\" \"white\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span style=\"color: rgb(14, 0, 255);\">for <\/span><span >k = 0:7<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    fprintf(<\/span><span style=\"color: rgb(167, 9, 245);\">\"\\x1b[%dm  %d  %s\\x1b[0m\\n\"<\/span><span >, 30+k, 30+k, names(k+1))<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span style=\"color: rgb(14, 0, 255);\">end<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_7-1.png\" width = \"596\" height = \"240\" alt = \"\" style = \"vertical-align: baseline; width: 596px; height: 240px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">I know what you're thinking. 37 is grey and not white. It turns out that this is standard too! Different terminals will render 'white' in different ways (see the <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/ANSI_escape_code\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\">ANSI escape codes Wikipedia page<\/span><\/a><span class=\"_richTextNode\"> for a demonstration) but it's almost always some form of light grey. The reason is because there are also \"bright\" versions of each of these colours. If you want honest-to-goodness \"white\" you have to ask for \"bright white\". Since all of the \"bright\" colors start at code 90 (\"bright black!\"), \"bright white\" is code 97.  <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Background colors are in the 40s. So, 40 gives a black background, 41 is a red background and so on.  Here's bright white (code 97) on a black background (code 40).<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >fprintf(<\/span><span style=\"color: rgb(167, 9, 245);\">\"\\x1b[97;40mThis is bright white on black\\x1b[0m\\n\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_8-1.png\" width = \"484\" height = \"40\" alt = \"\" style = \"vertical-align: baseline; width: 484px; height: 40px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Here's a cribsheet for the standard color codes<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >k = (0:7)';<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >t = table(30+k, 90+k, 40+k, 100+k, <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    VariableNames=[<\/span><span style=\"color: rgb(167, 9, 245);\">\"foreground\" \"fgBright\" \"background\" \"bgBright\"<\/span><span >], <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"wpfixed-code-line\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    RowNames=names)<\/span><\/span><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><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 disableDefaultGestureHandling embeddedOutputsVariableTableElement\" uid=\"D6CAE5E3\" prevent-scroll=\"true\" data-testid=\"output_3\" style=\"width: calc(100% - 5px);\" tabindex=\"-1\"><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\" aria-hidden=\"true\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\" aria-hidden=\"true\"><\/div><div class=\"outputLayer navigationFocusLayer doNotExport\" aria-hidden=\"false\" role=\"application\" tabindex=\"-1\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\" aria-hidden=\"false\" role=\"application\"><\/div><div class=\"ClientDocument veSpecifier table\" id=\"variableeditor_client_Document_0\" widgetid=\"variableeditor_client_Document_0\" tabindex=\"0\" aria-labelledby=\"variableeditor_views_SummaryBar_0\"><div class=\"summaryBar\" style=\"font-size: 12px; font-family: Consolas, Inconsolata, Menlo, monospace;\"><span>t = <\/span><span style=\"color: rgb(179, 179, 179); font-style: normal;\">8\u00d74 table <\/span><\/div><div id=\"variableeditor_TableViewModel_0\" widgetid=\"variableeditor_TableViewModel_0\" class=\"table lightWeightView ClientViewDiv hasSummaryBar\" data-viewid=\"__1\" style=\"width: 100%; overflow: auto;\"><table cellspacing=\"0\" style=\"border-spacing: 0px; border-collapse: collapse;\"><thead><tr><th rowspan=\"1\" style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border: 1px solid rgb(191, 191, 191); text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span> <\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 118px; min-width: 118px; max-width: 118px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>foreground<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 102px; min-width: 102px; max-width: 102px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>fgBright<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 118px; min-width: 118px; max-width: 118px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>background<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 102px; min-width: 102px; max-width: 102px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>bgBright<\/span><\/th><\/tr><\/thead><tbody><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>1 black<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>30<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>90<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>40<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>100<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>2 red<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>31<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>91<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>41<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>101<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>3 green<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>32<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>92<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>42<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>102<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>4 yellow<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>33<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>93<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>43<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>103<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>5 blue<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>34<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>94<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>44<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>104<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>6 magenta<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>35<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>95<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>45<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>105<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>7 cyan<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>36<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>96<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>46<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>106<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>8 white<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>37<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>97<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 118px; min-width: 118px; max-width: 118px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>47<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 102px; min-width: 102px; max-width: 102px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>107<\/span><\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Combine these with a few extra modifiers such as the following and you should be good to get started<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >attrs = [<\/span><span style=\"color: rgb(167, 9, 245);\">\"bold\" \"italic\" \"underline\" \"strikethrough\"<\/span><span >];<\/span><\/span><\/div><\/div><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >t = table([1 3 4 9]', [22 23 24 29]', <\/span><span style=\"color: rgb(14, 0, 255);\">...<\/span><\/span><\/div><\/div><div class=\"wpfixed-code-line\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >    VariableNames=[<\/span><span style=\"color: rgb(167, 9, 245);\">\"on\" \"off\"<\/span><span >], RowNames=attrs)<\/span><\/span><\/div><\/div><\/div><\/div><div class=\"inlineWrapper outputs\"><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 disableDefaultGestureHandling embeddedOutputsVariableTableElement\" uid=\"5AA280B1\" prevent-scroll=\"true\" data-testid=\"output_4\" style=\"width: calc(100% - 5px);\" tabindex=\"-1\"><div class=\"outputLayer selectedOutputDecorationLayer doNotExport\" aria-hidden=\"true\"><\/div><div class=\"outputLayer scrollableOutputDecorationLayer doNotExport\" aria-hidden=\"true\"><\/div><div class=\"outputLayer navigationFocusLayer doNotExport\" aria-hidden=\"false\" role=\"application\" tabindex=\"-1\"><\/div><div class=\"outputLayer activeOutputDecorationLayer doNotExport\" aria-hidden=\"false\" role=\"application\"><\/div><div class=\"ClientDocument veSpecifier table\" id=\"variableeditor_client_Document_1\" widgetid=\"variableeditor_client_Document_1\" tabindex=\"0\" aria-labelledby=\"variableeditor_views_SummaryBar_1\"><div class=\"summaryBar\" style=\"font-size: 12px; font-family: Consolas, Inconsolata, Menlo, monospace;\"><span>t = <\/span><span style=\"color: rgb(179, 179, 179); font-style: normal;\">4\u00d72 table <\/span><\/div><div id=\"variableeditor_TableViewModel_1\" widgetid=\"variableeditor_TableViewModel_1\" class=\"table lightWeightView ClientViewDiv hasSummaryBar\" data-viewid=\"__1\" style=\"width: 100%; overflow: auto;\"><table cellspacing=\"0\" style=\"border-spacing: 0px; border-collapse: collapse;\"><thead><tr><th rowspan=\"1\" style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border: 1px solid rgb(191, 191, 191); text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span> <\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 82px; min-width: 82px; max-width: 82px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>on<\/span><\/th><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 82px; min-width: 82px; max-width: 82px; border: 1px solid rgb(191, 191, 191); text-align: center; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>off<\/span><\/th><\/tr><\/thead><tbody><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>1 bold<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>1<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>22<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>2 italic<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>3<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>23<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>3 underline<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>4<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>24<\/span><\/td><\/tr><tr><th style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 6px 3px 3px; width: 34px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: left; background-color: rgb(245, 245, 245); color: rgba(0, 0, 0, 0.75); font-weight: 700; box-sizing: border-box;\"><span>4 strikethrough<\/span><\/th><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>9<\/span><\/td><td style=\"text-overflow: ellipsis; font-family: Arial, sans-serif; font-size: 12px; overflow: hidden; white-space: nowrap; padding: 3px; width: 82px; min-width: 82px; max-width: 82px; border-width: 0px 1px 1px; border-style: solid; border-color: rgb(191, 191, 191); border-image: initial; text-align: right;\"><span>29<\/span><\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Let's do bright red on black with strikethrough<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >fprintf(<\/span><span style=\"color: rgb(167, 9, 245);\">\"\\x1b[9;91;40mBright red on black with strikethrough\\x1b[0m\\n\"<\/span><span >)<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_9-1.png\" width = \"598\" height = \"90\" alt = \"\" style = \"vertical-align: baseline; width: 598px; height: 90px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Finally, code 5 is 'blink' but it's unsupported. We're not monsters!<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Interesting side effects and edge cases<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">I wondered what would happen if I didn't close a string with <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>\\x1b[0m<\/span><span class=\"_richTextNode\">. It turns out that the output of the command window is changed for all subsequent output<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_10-1.png\" width = \"598\" height = \"209\" alt = \"\" style = \"vertical-align: baseline; width: 598px; height: 209px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Could have a lot of fun by changing someone's command window to bright white while they were away from their desk! So now, all my output is bold and red until I reset it with a <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>fprintf(\"\\x1b[0m\")<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Not everything is affected though. The new <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><span class=\"_richTextNode\"> function, for example, does not support ANSI codes although the venerable <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>disp<\/span><span class=\"_richTextNode\"> function does<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_11-1.png\" width = \"331\" height = \"106\" alt = \"\" style = \"vertical-align: baseline; width: 331px; height: 106px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">When MATLAB returns a matrix, that is not affected either<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_12-1.png\" width = \"171\" height = \"114\" alt = \"\" style = \"vertical-align: baseline; width: 171px; height: 114px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Strings are though<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_13-1.png\" width = \"219\" height = \"106\" alt = \"\" style = \"vertical-align: baseline; width: 219px; height: 106px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">HTML for bold and hyperlinks is not supported when using ANSI codes. As such, Table and other outputs containing bold or hyperlinks will show their underlying HTML when used like this. For example:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_14-1.png\" width = \"598\" height = \"226\" alt = \"\" style = \"vertical-align: baseline; width: 598px; height: 226px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The escape characters don't work at all in live scripts yet <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_15-1.png\" width = \"506\" height = \"73\" alt = \"\" style = \"vertical-align: baseline; width: 506px; height: 73px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">There might be more such edge cases. Let me know if you find any<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">How to turn off markdown display and truncated matrices for the command window<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Whenever a change is made to a fundamental part of MATLAB, some people will always want to go back to the way things were. You cannot turn off support for ANSI escape codes but you can turn off the rendering of markdown via <\/span><span class=\"_richTextNode\" style=' font-family: monospace;'>markdowndisp<\/span><span class=\"_richTextNode\"> and truncated matrices.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">In the MATLAB Desktop, Click on <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>Settings<\/span><span class=\"_richTextNode\"> in the <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>Environment<\/span><span class=\"_richTextNode\"> section. Select <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>MATLAB&gt;Command Window<\/span><span class=\"_richTextNode\">, and then clear the <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>Show enhanced output (truncate matrix, render Markdown)<\/span><span class=\"_richTextNode\"> option.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Matrices won't be shown truncated anymore and markdowndisp will behave like disp in the command window<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_16-1.png\" width = \"345\" height = \"35\" alt = \"\" style = \"vertical-align: baseline; width: 345px; height: 35px;\"><\/img><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Over to you<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Please give all of this new functionality a try, let us know what you think and what you think we should do next in this area. For more of what's new in R2026b, check out my <\/span><a href=\"https:\/\/blogs.mathworks.com\/matlab\/2026\/10\/01\/a-look-at-some-of-whats-new-in-matlab-r2026b\/\" target=\"_self\" rel=\"noopener\"><span class=\"_richTextNode\">tour of the new release<\/span><\/a><span class=\"_richTextNode\">. <\/span><\/div>\r\n<\/div><script id=\"wpfixed-code-scroll-layout\">\r\n(function () {\r\n    \"use strict\";\r\n\r\n    function initialize() {\r\n        if (window.wpfixedCodeScrollLayout) {\r\n            window.wpfixedCodeScrollLayout.refresh();\r\n            return;\r\n        }\r\n\r\n        var pending = false;\r\n        var observed = new WeakSet();\r\n        var observer = typeof ResizeObserver === \"function\" ? new ResizeObserver(schedule) : null;\r\n\r\n        function update() {\r\n            pending = false;\r\n            document.querySelectorAll(\".wpfixed-code-scroll\").forEach(function (group) {\r\n                var lines = group.querySelector(\".wpfixed-code-lines\");\r\n                if (!lines) {\r\n                    return;\r\n                }\r\n                if (observer && !observed.has(group)) {\r\n                    observer.observe(group);\r\n                    observer.observe(lines);\r\n                    observed.add(group);\r\n                }\r\n                \/\/ Overlay scrollbars need clearance only when there is overflow.\r\n                var padding = group.scrollWidth > group.clientWidth + 1 ? \"18px\" : \"0px\";\r\n                if (group.style.paddingBottom !== padding) {\r\n                    group.style.paddingBottom = padding;\r\n                }\r\n            });\r\n        }\r\n\r\n        function schedule() {\r\n            if (!pending) {\r\n                pending = true;\r\n                requestAnimationFrame(update);\r\n            }\r\n        }\r\n\r\n        window.wpfixedCodeScrollLayout = { refresh: schedule };\r\n        window.addEventListener(\"resize\", schedule);\r\n        window.addEventListener(\"load\", schedule, { once: true });\r\n        if (document.fonts && document.fonts.ready) {\r\n            document.fonts.ready.then(schedule);\r\n        }\r\n        schedule();\r\n    }\r\n\r\n    if (document.readyState === \"loading\") {\r\n        document.addEventListener(\"DOMContentLoaded\", initialize, { once: true });\r\n    } else {\r\n        initialize();\r\n    }\r\n}());\r\n<\/script><script type=\"text\/javascript\">var css = '._richTextNode {white-space: break-spaces;} \/* Copyright 2017-2025 The MathWorks, Inc. *\/.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;  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;} \/* ClientDocument has a summary bar child that takes up 17px, this clashes with overflow on the view which allots space for scrollbars. On print preview, this causes headers from <thead> to overlap on subsequent pages. Displaying Document as flex renders summarybar and view in column format and fixes the issue g2788485 *\/.embeddedOutputsVariableTableElement .ClientDocument {  display: flex;  flex-direction: column;}'; 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>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/matlab\/files\/2026\/10\/enhancedOutputCommandLinePublish_4-1.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>When using MATLAB, I have always been most at home in the command window. I'm kind of old-school that way which is why the release of MATLAB's Terminal made me so excited. Give me the command window,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/matlab\/2026\/10\/12\/enhanced-output-in-the-matlab-command-window-in-r2026b\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":4542,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,20],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4421"}],"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=4421"}],"version-history":[{"count":8,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4421\/revisions"}],"predecessor-version":[{"id":4549,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4421\/revisions\/4549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media\/4542"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media?parent=4421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/categories?post=4421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/tags?post=4421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}