Overview
Comment:removed unique.m which masks built-in
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 9da46dfd04e0c82d3e1faf38f5569314b484e5a068f9e0a1662ea0861c059400
User & Date: geraint@users.sourceforge.net on 2012-10-15 19:28:29
Other Links: branch diff | manifest | tags
Context
2012-10-15
21:29:17
Fixed URL to CVS server check-in: 4059ffe98a user: geraint@users.sourceforge.net tags: origin/master, trunk
19:28:29
removed unique.m which masks built-in check-in: 9da46dfd04 user: geraint@users.sourceforge.net tags: origin/master, trunk
19:24:19
split is obsolete in Octave, replaced with strsplit check-in: 828952c174 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Deleted mttroot/mtt/bin/trans/m/unique.m version [feff63e110].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function u = unique(x);
% if all the elements of x are different, returns 1 else returns 0


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


n = length(x);
u=1;

for i=1:n
  for j = 1:i-1
    if x(i)==x(j)
      u = 0;
      break;
    end;
  end;
end;

    
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<



















































MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]