Mercurial > hg > ishara
view signals/private/unify.m @ 42:ae596261e75f
Various fixes and development to audio handling
author | samer |
---|---|
date | Tue, 02 Dec 2014 14:51:13 +0000 |
parents | 289445d368a7 |
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