Skip to content

Commit

Permalink
Over-riding max() and min() operators
Browse files Browse the repository at this point in the history
  • Loading branch information
jflalonde committed May 18, 2014
1 parent 25785f0 commit 2e9e480
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mycode/EnvironmentMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ function imagesc(e, varargin)
e.data = e.data > a;
end

function e = max(e, varargin)
e.data = max(e.data, varargin{:});
end

function e = min(e, varargin)
e.data = min(e.data, varargin{:});
end

function varargout = size(e, varargin)
varargout{:} = size(e.data, varargin{:});
end
Expand Down

0 comments on commit 2e9e480

Please sign in to comment.