Differences From Artifact [061a293596]:
- Executable file mttroot/mtt/bin/trans/m/mtt_strip_name.m — part of check-in [f5ee792cac] at 1999-10-19 02:01:22 on branch origin/master — Initial revision (user: gawthrop@users.sourceforge.net, size: 328) [annotate] [blame] [check-ins using]
To Artifact [04fb8c767f]:
- Executable file mtt/bin/trans/m/mtt_strip_name.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 503) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/m/mtt_strip_name.m — part of check-in [84ce5c7e24] at 2002-10-29 23:44:57 on branch origin/master — More informative error message (user: gawthrop@users.sourceforge.net, size: 503) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 | 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
|