Overview
Comment:Included additional structure: structure(5) = zero_outputs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 31de7aae81f74028f4285c466add0ee305db6d2485873e3216f0b5953e46a5db
User & Date: gawthrop@users.sourceforge.net on 1996-08-18 20:08:02
Other Links: branch diff | manifest | tags
Context
1996-08-19
06:48:14
Explicit figure editing. check-in: 85676c591d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1996-08-18
20:08:02
Included additional structure: structure(5) = zero_outputs. check-in: 31de7aae81 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:06:58
Put unded version control check-in: fb5eec80df user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/cbg2ese.m from [f07d43dd6f] to [06369eaad0].

8
9
10
11
12
13
14



15
16
17
18
19
20
21
% Acausal bond graph to causal bond graph: mfile format

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



% %% Revision 1.1  1996/08/08 15:53:23  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


pc = '%';







>
>
>







8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Acausal bond graph to causal bond graph: mfile format

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2  1996/08/08 18:08:11  peter
% %% Sorted out file naming sceme
% %%
% %% Revision 1.1  1996/08/08 15:53:23  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


pc = '%';
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  if (columns ~= 2)&(n_bonds>0)
    error('Incorrect bonds matrix: must have 2 columns');
  end;

  % Find number of components
  [n_components,columns] = size(components);
  
  %Structure matrix [states,nonstates,inputs,outputs]
  structure = zeros(1,4);


  for i = 1:n_components
    comp = nozeros(components(i,:));
    bond_list = abs(comp);
    direction = sign(comp)'*[1 1];
    % Convert from arrow orientated to component orientated causality







|
|







58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  if (columns ~= 2)&(n_bonds>0)
    error('Incorrect bonds matrix: must have 2 columns');
  end;

  % Find number of components
  [n_components,columns] = size(components);
  
  %Structure matrix [states,nonstates,inputs,outputs,zero_outputs]
  structure = zeros(1,5);


  for i = 1:n_components
    comp = nozeros(components(i,:));
    bond_list = abs(comp);
    direction = sign(comp)'*[1 1];
    % Convert from arrow orientated to component orientated causality


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