Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (7 sloc) 117 Bytes
function [res,ind] = max_or_this(x,value)
if length(x) > 0
[res,ind] = max(x);
return;
end
res = value;
ind = -1;