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

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.