Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6f63f9f6bf0d5979e5c59aa81dd9f537 |
User & Date: | gawthrop@users.sourceforge.net on 1998-04-16 14:08:00 |
Other Links: | branch diff | manifest | tags |
Context
1998-05-12
| ||
14:42:07 |
Added ese_tidy and new method for organising ese files - Each subsystem has an array of variables - effort, flow and state for each bond check-in: 5c8d85f992 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1998-04-16
| ||
14:08:00 | Initial revision check-in: 6f63f9f6bf user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
14:07:51 |
Sorted out [] problem with vector ports -- new octave function split_port check-in: b6d745a665 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/m/split_port.m version [833076f503].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 35 36 37 38 39 40 41 42 | function [subport,n]=split_port(port_name); % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subport = ""; raw_subport = split(port_name, ','); # Find the components of the vector # port [n,m] = size(raw_subport); # Number of ports for i = 1:n s = deblank(raw_subport(i,:)); l = length(s); if s(1)=="[" # Remove leading [ (if any) l = l-1; s = substr(s,2,l); end if s(l)=="]" # Remove trailing ] (if any) l = l-1; s = substr(s,1,l); end s = ["[",s,"]"]; # Surround by [] subport = [subport ;s]; # Return to the array end; endfunction; |