Mercurial > hg > octave-nkf
comparison scripts/control/syschnames.m @ 3346:8dd4718801fd
[project @ 1999-11-09 18:18:12 by jwe]
author | jwe |
---|---|
date | Tue, 09 Nov 1999 18:18:37 +0000 |
parents | f7e4a95916f2 |
children | 69b167451491 |
comparison
equal
deleted
inserted
replaced
3345:c7ed52f51470 | 3346:8dd4718801fd |
---|---|
13 # for more details. | 13 # for more details. |
14 # | 14 # |
15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
16 # along with Octave; see the file COPYING. If not, write to the Free | 16 # along with Octave; see the file COPYING. If not, write to the Free |
17 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. | 17 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. |
18 | 18 |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File } {@var{retsys} =} syschnames (@var{sys}, @var{opt}, @var{list}, @var{names}) | |
21 ## Superseded by @code{syssetsignals} | |
22 ## @end deftypefn | |
23 | |
19 function retsys = syschnames(sys,opt,list,names) | 24 function retsys = syschnames(sys,opt,list,names) |
20 # retsys = syschnames(sys,opt,list,names) | |
21 # change the names of selected inputs, outputs and states. | |
22 # inputs: | |
23 # sys: system data structure | |
24 # opt: []: change default name (output) | |
25 # "out": change selected output names | |
26 # "in": change selected input names | |
27 # "st": change selected state names | |
28 # "yd": change selected outputs from discrete to continuous or | |
29 # from continuous to discrete. | |
30 # | |
31 # list: vector of indices of outputs, yd, inputs, or | |
32 # states whose respective names should be changed | |
33 # | |
34 # names: strings or string arrays containing | |
35 # names corresponding to the lists above. To | |
36 # change yd, use a vector. Set the name to 0 for continuous, | |
37 # or 1 for discrete. | |
38 # outputs: | |
39 # retsys=sys with appropriate signal names changed | |
40 # (or yd values, where appropriate) | |
41 | |
42 # Written by John Ingram August 1996; updated by A. S. Hodel 1998 | 25 # Written by John Ingram August 1996; updated by A. S. Hodel 1998 |
43 | 26 |
44 retsys = syssetsignals(sys,opt,names,list); | 27 retsys = syssetsignals(sys,opt,names,list); |
45 | 28 |
46 endfunction | 29 endfunction |