File Exchange Pick of the Week

Our best user submissions

Minimum of an entire matrix

Note

The file submission referenced in this post is no longer available on File Exchange.


Duane 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.

This is a great set of functions that will save you from typing

a = magic(5);
min(a(:))

and replace it with

a = magic(5);
minn(a)

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.

|
  • print
  • send email

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.