Overview
Comment:Now has T vector input - it was tmax & tstep
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 555890dc62afe037d984caa9e662fb1683a7d4f2937824dfb8ced061a85a693a
User & Date: gawthrop@users.sourceforge.net on 1996-08-10 14:16:04
Other Links: branch diff | manifest | tags
Context
1996-08-11
08:48:07
Initial revision check-in: f0381565ae user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1996-08-10
14:16:04
Now has T vector input - it was tmax & tstep check-in: 555890dc62 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:15:03
Initial revision check-in: 9ed98b5ae5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/dm2ir.m from [129a6aed88] to [1ba228b450].

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


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
26
27
28
29
30
31
32
33
34
-
-
+
+


+
+






+
+
+






-
-
+
+
+
+
+
+







function [T,ir] = dm2ir(A,B,C,D,E,tmax,tstep);

function ir = dm2ir(A,B,C,D,E,T);
% ir = dm2ir(A,B,C,D,E,T);
% Descriptor matrix to impulse response.
% NB At the moment - this assumes that E is unity .....
% A,B,C,D,E - descriptor matrices
% T vector of time points

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.2  1996/08/10 11:49:39  peter
% %% Fixed multi-input/output problem
% %%
% %% Revision 1.1  1996/08/10 10:26:00  peter
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


T=[0:tstep:tmax]';
N = length(T);
[N,M] = size(T);
if M>N
  T = T';
  N = M;
end;

[Ny,Nu] = size(D);
NN=Ny*Nu;

ir = zeros(N,NN);
i = 0;
for t = T'
  i=i+1;


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