3279
|
1 # Copyright (C) 1996,1998 Auburn University. All Rights Reserved. |
3213
|
2 # |
|
3 # This file is part of Octave. |
|
4 # |
|
5 # Octave is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License as published by the |
|
7 # Free Software Foundation; either version 2, or (at your option) any |
|
8 # later version. |
|
9 # |
|
10 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 # for more details. |
|
14 # |
|
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 |
|
17 # Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
18 |
|
19 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 |
3228
|
42 # Written by John Ingram August 1996; updated by A. S. Hodel 1998 |
3213
|
43 |
3228
|
44 retsys = syssetsignals(sys,opt,names,list); |
3213
|
45 |
|
46 endfunction |