{"id":5793,"date":"2022-10-26T12:11:21","date_gmt":"2022-10-26T16:11:21","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/?p=5793"},"modified":"2022-10-26T12:11:21","modified_gmt":"2022-10-26T16:11:21","slug":"update-code-trace-for-matlab","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2022\/10\/26\/update-code-trace-for-matlab\/","title":{"rendered":"Update for Code Trace for MATLAB"},"content":{"rendered":"<p>About a month ago, I <a href=\"https:\/\/blogs.mathworks.com\/steve\/2022\/09\/29\/code-trace-for-matlab\/\">posted<\/a> about my Code Trace for MATLAB tool, which is posted to <a href=\"https:\/\/github.com\/mathworks\/MATLAB-code-trace\">GitHub<\/a> and the <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/118245-code-trace-for-matlab\">File Exchange<\/a>. This tool is useful for exploring and troubleshooting executing MATLAB code.<\/p>\r\n\r\n<p>I just published an update, version 2.0.0. There are now several new options for addCodeTrace, including:<\/p>\r\n\r\n<p>\r\n<ul>\r\n<li>Evaluate code trace expressions with no output arguments<br\/>\r\nNumExpressionOutputs = 0 or 1<\/li>\r\n<li>Write code trace displays to file instead of showing them in the Command Window<br\/>\r\nOutputFile = filename<\/li>\r\n<li>Suppress the stack depth indentation<br\/>\r\nShowStackDepth = true or false<\/li>\r\n<li>Suppress code trace displays<br\/>\r\nDisplayTrace = true or false<\/li>\r\n<\/ul>\r\n<\/p>\r\n\r\n<p>Note that version 2.0.0 no longer does stack depth indentation by default.<\/p>\r\n\r\n<a>See <a href=\"https:\/\/blogs.mathworks.com\/steve\/2022\/09\/29\/code-trace-for-matlab\/\">my earlier post<\/a> for more information about this tool.<\/p>\r\n\r\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/steve\/files\/matlab_code_trace_1.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>About a month ago, I posted about my Code Trace for MATLAB tool, which is posted to GitHub and the File Exchange. This tool is useful for exploring and troubleshooting executing MATLAB code.\r\n\r\nI... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2022\/10\/26\/update-code-trace-for-matlab\/\">read more >><\/a><\/p>","protected":false},"author":42,"featured_media":5723,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/5793"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=5793"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/5793\/revisions"}],"predecessor-version":[{"id":5802,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/5793\/revisions\/5802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media\/5723"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=5793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=5793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=5793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}