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: 459354d6702b753dd11eca2f2fd0c5e4582c27c7c811740ebe7a0d1882ce30d8
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: 398090a19d user: geraint@users.sourceforge.net tags: origin/master, trunk
19:28:29
removed unique.m which masks built-in check-in: 459354d670 user: geraint@users.sourceforge.net tags: origin/master, trunk
19:24:19
split is obsolete in Octave, replaced with strsplit check-in: 1ad9b88635 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 ]