Overview
Comment: | split is obsolete in Octave, replaced with strsplit |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1ad9b8863593ad97b732a9150f3fd305 |
User & Date: | geraint@users.sourceforge.net on 2012-10-15 19:24:19 |
Other Links: | branch diff | manifest | tags |
Context
2012-10-15
| ||
19:28:29 | removed unique.m which masks built-in check-in: 459354d670 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
19:24:19 | split is obsolete in Octave, replaced with strsplit check-in: 1ad9b88635 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
19:22:44 | mtt_isunique replaces unique which masks a built-in function. check-in: 4f71d8387c user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/split_port.m from [833076f503] to [bf18ef5846].
1 2 3 4 5 6 7 8 9 10 11 12 13 | function [subport,n]=split_port(port_name); % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subport = ""; | > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | function [subport,n]=split_port(port_name); % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % % Revision 1.1 1998/04/16 14:08:00 peterg % % Initial revision % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subport = ""; raw_subport = char(strsplit(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); |
︙ | ︙ |