{"id":82,"date":"2007-03-01T15:05:09","date_gmt":"2007-03-01T20:05:09","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2007\/03\/01\/r2007a-released\/"},"modified":"2016-07-29T16:24:22","modified_gmt":"2016-07-29T21:24:22","slug":"r2007a-released","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2007\/03\/01\/r2007a-released\/","title":{"rendered":"R2007a Released"},"content":{"rendered":"<div class=\"content\">\n<p>Release 2007a came out today. This corresponds to MATLAB version 7.4. I will list here a few of my favorite new MATLAB features. I will discuss some of them in future blogs.<\/p>\n<p>&nbsp;<\/p>\n<h3>Contents<\/h3>\n<div>\n<ul>\n<li><a href=\"#1\">Multithreaded Computational Support<\/a><\/li>\n<li><a href=\"#2\">M-Lint in the Editor<\/a><\/li>\n<li><a href=\"#3\">Utility to Help with Parsing Inputs<\/a><\/li>\n<li><a href=\"#4\">Function for Singleton Expansion<\/a><\/li>\n<li><a href=\"#5\">Try R2007a<\/a><\/li>\n<\/ul>\n<\/div>\n<h3>Multithreaded Computational Support<a name=\"1\"><\/a><\/h3>\n<p>MATLAB has multithreaded computation support for many linear algebra and element-wise numeric operations, allowing performance<br \/>\nimprovement on multicore and multiprocessor systems.<\/p>\n<h3>M-Lint in the Editor<a name=\"2\"><\/a><\/h3>\n<p>When using the MATLAB Editor, for certain messages about your code, you now have the option, through a right-click menu, to<br \/>\nreplace the code with the recommendation.<\/p>\n<h3>Utility to Help with Parsing Inputs<a name=\"3\"><\/a><\/h3>\n<p>When writing a function that needs to be robust, there's often a lot of code up front to validate the inputs. <tt>inputParser<\/tt> can now help you with that in a more methodical way.<\/p>\n<h3>Function for Singleton Expansion<a name=\"4\"><\/a><\/h3>\n<p>In February 2006, I posted an article on <a href=\"https:\/\/blogs.mathworks.com\/loren\/2006\/02\/22\/scalar-expansion-and-more-take-2\/\">Scalar Expansion and More<\/a> that generated a lot of interest. See the new function <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/bsxfun.html\"><tt>bsxfun<\/tt><\/a> (for Binary Singleton Expansion Function) to help perform binary operations on element-by-element functions for arrays which<br \/>\nagree in sizes in all dimensions unless the one of the different sizes is a scalar.<\/p>\n<h3>Try R2007a<a name=\"5\"><\/a><\/h3>\n<p>I've only listed a few of the latest features in MATLAB. What's your favorite new feature? Tell people about it <a href=\"https:\/\/blogs.mathworks.com\/loren\/2007\/03\/01\/r2007a-released\/#respond\">here<\/a>.<\/p>\n<p><script>\/\/ <![CDATA[\nfunction grabCode_457765d186ac4c18bf332453e2e4c82d() {\n        \/\/ Remember the title so we can use it in the new page\n        title = document.title;\n\n        \/\/ Break up these strings so that their presence\n        \/\/ in the Javascript doesn't mess up the search for\n        \/\/ the MATLAB code.\n        t1='457765d186ac4c18bf332453e2e4c82d ' + '##### ' + 'SOURCE BEGIN' + ' #####';\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 457765d186ac4c18bf332453e2e4c82d';\n    \n        b=document.getElementsByTagName('body')[0];\n        i1=b.innerHTML.indexOf(t1)+t1.length;\n        i2=b.innerHTML.indexOf(t2);\n \n        code_string = b.innerHTML.substring(i1, i2);\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\n\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \n        \/\/ in the XML parser.\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\n        \/\/ doesn't go ahead and substitute the less-than character. \n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\n\n        author = 'Loren Shure';\n        copyright = 'Copyright 2007 The MathWorks, Inc.';\n\n        w = window.open();\n        d = w.document;\n        d.write('\n\n\n\n\n\n<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\n\n\n\n\n\n\n\\n');\n      \n      d.title = title + ' (MATLAB code)';\n      d.close();\n      }\n\/\/ ]]><\/script><\/p>\n<p style=\"text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;\"><a><span style=\"font-size: x-small; font-style: italic;\">Get<br \/>\nthe MATLAB code<br \/>\n<noscript>(requires JavaScript)<\/noscript><\/span><\/a><\/p>\n<p>Published with MATLAB\u00ae 7.4<\/p>\n<\/div>\n<p><!--\n457765d186ac4c18bf332453e2e4c82d ##### SOURCE BEGIN #####\n%% R2007a Released\n% Release 2007a came out today.  This corresponds to MATLAB version 7.4.  I\n% will list here a few of my favorite <https:\/\/www.mathworks.com\/help\/relnotes\/index.htmlf0-107996.html#f0-79433 new MATLAB features>.\n% I will discuss some of them in future blogs.\n%% Multithreaded Computational Support\n% MATLAB has multithreaded computation support for many linear algebra and\n% element-wise numeric operations, allowing performance improvement on\n% multicore and multiprocessor systems.\n%%  M-Lint in the Editor\n% When using the MATLAB Editor, for certain messages about your code, you\n% now have the option, through a right-click menu, to replace the code with\n% the recommendation.\n%% Utility to Help with Parsing Inputs\n% When writing a function that needs to be robust, there's often a lot of\n% code up front to validate the inputs.\n% <https:\/\/www.mathworks.com\/access\/helpdesk\/help\/techdoc\/ref\/inputparser.html |inputParser|>\n% can now help you with that in a more methodical way.\n%% Function for Singleton Expansion\n% In February 2006, I posted an article on\n% <https:\/\/blogs.mathworks.com\/loren\/2006\/02\/22\/scalar-expansion-and-more-take-2\/ Scalar Expansion and More>\n% that generated a lot of interest.\n% See the new function <https:\/\/www.mathworks.com\/help\/matlab\/ref\/bsxfun.html |bsxfun|>\n% (for Binary Singleton Expansion Function)\n% to help perform binary operations on element-by-element functions for\n% arrays which agree in sizes in all dimensions unless the one of the\n% different sizes is a scalar.\n%% Try R2007a\n% I've only listed a few of the latest features in MATLAB.  What's your\n% favorite new feature?  Tell people about it <?p=81#respond here>.\n\n##### SOURCE END ##### 457765d186ac4c18bf332453e2e4c82d\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\nRelease 2007a came out today. This corresponds to MATLAB version 7.4. I will list here a few of my favorite new MATLAB features. I will discuss some of them in future... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2007\/03\/01\/r2007a-released\/\">read more >><\/a><\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":1824,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/82\/revisions\/1824"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}