Mercurial > hg > ishara
view signals/private/unify.m @ 1:289445d368a7
import.
author | samer |
---|---|
date | Wed, 19 Dec 2012 22:46:05 +0000 |
parents | |
children |
line wrap: on
line source
% this is weird but it works % nan means variable, so max(nan,x)=x % inf means failure so max(inf,x)=inf function z=unify(x,y) if ~isfinite(x) || ~isfinite(y), z=max(x,y); elseif x==y, z=x; else z=inf; end end