{"id":107,"date":"2004-05-12T13:13:14","date_gmt":"2004-05-12T18:13:14","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=107"},"modified":"2016-10-13T22:29:15","modified_gmt":"2016-10-14T02:29:15","slug":"minimum-of-an-entire-matrix","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2004\/05\/12\/minimum-of-an-entire-matrix\/","title":{"rendered":"Minimum of an entire matrix"},"content":{"rendered":"<p><div class=\"alert alert-info\"> <span class=\"alert_icon icon-alert-info-reverse\"><\/span><p class=\"alert_heading\"><strong>Note<\/strong><\/p><p>The file submission referenced in this post is no longer available on File Exchange.<\/p><\/div><br \/>\nDuane wrote the book on MATLAB, he also wrote this pair of functions to find the max and min of an entire matrix rather than using the standard MATLAB method of returning the maximum of each column.<\/p>\n<p>This is a great set of functions that will save you from typing<\/p>\n<p>a = magic(5);<br \/>\nmin(a(:))<\/p>\n<p>and replace it with<\/p>\n<p>a = magic(5);<br \/>\nminn(a)<\/p>\n<p>It is cleaner looking, and saves you two keystrokes (they add up you know!). The code is well written and is robust because of error checking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> NoteThe file submission referenced in this post is no longer available on File Exchange.<br \/>\nDuane wrote the book on MATLAB, he also wrote this pair of functions to find the max and min of an entire&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2004\/05\/12\/minimum-of-an-entire-matrix\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":7902,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/107\/revisions\/7902"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}