Overview
Comment:Fixed typing error in (length(j)==1)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f7d79e097cad18a819961ecfeaa9ed06ca9daa21ce361f64cc914651abb0acf3
User & Date: gawthrop@users.sourceforge.net on 1998-01-23 09:23:00
Other Links: branch diff | manifest | tags
Context
1998-01-23
09:30:36
Fixed a sign error - the coeficients of a(s) appear with - signs in
the A_c matrix!
check-in: 5d295cdb21 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:23:00
Fixed typing error in (length(j)==1) check-in: f7d79e097c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:22:05
Initial revision check-in: 7da8e4cff1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/name_in_list.m from [aa3879df3d] to [d44d5cda78].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37


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



% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


[N,M] = size(list);
if N<1
  error('list must have at least one element');
end;

index = 0;

for i = 1:N
  name,list(i,:)
 j = findstr(name,list(i,:))
 if length(j==1)
    if j(1)==1
      if index==0
        index = i;
      else 
        index = [index i];
      end
    end







>
>
>











<
|
|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38
39


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.1  1998/01/23 09:22:05  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


[N,M] = size(list);
if N<1
  error('list must have at least one element');
end;

index = 0;

for i = 1:N

 j = findstr(name,list(i,:));
 if (length(j)==1)
    if j(1)==1
      if index==0
        index = i;
      else 
        index = [index i];
      end
    end


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