Code covered by the BSD License  

Highlights from
largestMax

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 2 KB File ID: #24808

largestMax

by Brian Schrameck

 

21 Jul 2009

The largest component of all vector and/or matrix inputs.

| Watch this File

File Information
Description

LARGESTMAX(X), where X is any number of vectors and/or matrices, is the largest component present in any of these structures. LARGESTMAX(X) is consistent with MATLAB's built-in MAX(X) for vectors only!! LARGESTMAX(X) for a matrix returns the equivalent of MAX(MAX(X)). LARGESTMAX accepts mixed inputs of vectors and matrices. A matrix is defined as having exactly 2 dimensions.

VALID INPUTS: row and column vectors and 2-D matrices. These can contain characters, complex numbers, and numerics. Logicals, doubles, singles, int8, uint8, int16, int32, and uint32 are also valid.
INVALID INPUTS: cell arrays, 64-bit signed and unsigned values, structures, function handles, user classes, and java classes.

These lists may not be all-inclusive.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
22 Jul 2009 us

another way

function r=gmax(varargin)
try
r=max(cellfun(@(x) max(x(:)),varargin));
catch %#ok
error('invalid input argument(s)');
end
end

us

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
largest Brian Schrameck 21 Jul 2009 14:49:16
max Brian Schrameck 21 Jul 2009 14:49:16
biggest Brian Schrameck 21 Jul 2009 14:49:16

Contact us at files@mathworks.com