Overview
Comment:Explicitly set U to zero
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 6d004534e53598197f16c2955c65afc5b2d57937bf9e45e7d5732cdb56725600
User & Date: gawthrop@users.sourceforge.net on 2005-10-13 10:01:57
Other Links: branch diff | manifest | tags
Context
2005-11-13
18:15:27
*** empty log message *** check-in: 6a70a49463 user: geraint@users.sourceforge.net tags: origin/master, trunk
2005-10-13
10:01:57
Explicitly set U to zero check-in: 6d004534e5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:28:50
Prediction matices for open-loop control check-in: 02f5015856 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/control/PPP/ppp_ustar2h.m from [ec1d4f0005] to [d77ecc26ba].

20
21
22
23
24
25
26
27









28
29
30
31
32
33
34

  ## Header
  header = sprintf("/*\n File %s generated by ppp_ustar2h on %s */\n", \
		   filename, ctime(time));

  def = sprintf("#define N_U %i\n#define N_T %i\n#define DT %g\n", \
		 N_U, N, DT);
  def = sprintf("%sdouble U[N_U];\n",def);










  fprintf(fid, "%s%sdouble %s[N_T][N_U] = {\n",header,def,name);
  for i=1:N
    fprintf(fid, "{");
    for j=1:N_U
      if j<N_U
	comma = ",";







|
>
>
>
>
>
>
>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

  ## Header
  header = sprintf("/*\n File %s generated by ppp_ustar2h on %s */\n", \
		   filename, ctime(time));

  def = sprintf("#define N_U %i\n#define N_T %i\n#define DT %g\n", \
		 N_U, N, DT);
  def = sprintf("%sdouble U[N_U]={",def);
  for j=1:N_U
    if j<N_U
      comma = ",";
    else
      comma = "";
    endif
    def = sprintf("%s0.0%s ",def, comma);
  endfor
  def = sprintf("%s};\n",def)

  fprintf(fid, "%s%sdouble %s[N_T][N_U] = {\n",header,def,name);
  for i=1:N
    fprintf(fid, "{");
    for j=1:N_U
      if j<N_U
	comma = ",";


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