Mercurial > hg > octave-lyh
annotate scripts/control/system/__sysconcat__.m @ 4844:9f7ef92b50b0
[project @ 2004-04-02 17:26:53 by jwe]
author | jwe |
---|---|
date | Fri, 02 Apr 2004 17:26:54 +0000 |
parents | f105000ab25c |
children | ec8c33dcd1bf |
rev | line source |
---|---|
4779 | 1 function c = __sysconcat__(a,b) |
2 # c = __sysconcat__(a,b) | |
3 # cell array replacement for append, used by control systems toolbox | |
4 | |
5 if(isstr(a)) | |
6 a = {a}; | |
7 endif | |
8 if(isstr(b)) | |
9 b = {b}; | |
10 endif | |
11 | |
12 if ( ! ( is_signal_list(a) && is_signal_list(b) ) ) | |
13 error("need cell arrays of strings"); | |
14 endif | |
15 | |
16 c = a; | |
17 la = length(a); | |
18 for ii=1:length(b) | |
19 c{la+ii} = b{ii}; | |
20 endfor | |
21 | |
22 endfunction | |
23 |