Overview
Comment:More informative error message
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a774a45647e22cc530c26e1b919c3054419937dc543aea02d2f444edc1a4bd6f
User & Date: gawthrop@users.sourceforge.net on 2002-10-29 23:44:57
Other Links: branch diff | manifest | tags
Context
2002-10-30
00:04:22
Added AEf and AFe to list check-in: e1050b6313 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-10-29
23:44:57
More informative error message check-in: a774a45647 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-10-28
23:31:21
Added additional term to MTTEdx to account for zdot terms on
Right-Hand Side state equations
check-in: 366de23619 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/mtt_strip_name.m from [061a293596] to [04fb8c767f].

1
2
3
4
5
6











7
8
9
10
11
function stripped_name = mtt_strip_name (name)

  ## usage:  stripped_name = mtt_strip_name (name)
  ##
  ## Removes blanks and [] from a port name












  stripped_name = deblank(name); # remove blanks
  stripped_name = stripped_name(2:length(stripped_name)-1);
  stripped_name = deblank(stripped_name); # remove blanks

endfunction






>
>
>
>
>
>
>
>
>
>
>





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function stripped_name = mtt_strip_name (name)

  ## usage:  stripped_name = mtt_strip_name (name)
  ##
  ## Removes blanks and [] from a port name

  if (length(name)==0)
    error("Zero length port name found");
  endif


  [N,M] = size(name)
  if N>1
    error("Cannot resolve port names: redraw abg.fig");
  endif
  
  
  stripped_name = deblank(name); # remove blanks
  stripped_name = stripped_name(2:length(stripped_name)-1);
  stripped_name = deblank(stripped_name); # remove blanks

endfunction


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