Mercurial > hg > octave-lyh
comparison scripts/control/system/sysidx.m @ 4030:22bd65326ec1
[project @ 2002-08-09 18:58:13 by jwe]
author | jwe |
---|---|
date | Fri, 09 Aug 2002 19:00:16 +0000 |
parents | a892190f4977 |
children | 9f7ef92b50b0 |
comparison
equal
deleted
inserted
replaced
4029:2cc57b6169cf | 4030:22bd65326ec1 |
---|---|
26 | 26 |
27 function idxvec = sysidx (sys, sigtype, signamelist) | 27 function idxvec = sysidx (sys, sigtype, signamelist) |
28 | 28 |
29 if (nargin != 3) | 29 if (nargin != 3) |
30 usage ("idxvec = sysidx (sys, sigtype, signamelist)"); | 30 usage ("idxvec = sysidx (sys, sigtype, signamelist)"); |
31 elseif (! is_struct (sys)) | 31 elseif (! isstruct (sys)) |
32 error ("sys must be a system data structure"); | 32 error ("sys must be a system data structure"); |
33 elseif (! isstr (sigtype)) | 33 elseif (! isstr (sigtype)) |
34 error ("sigtype must be a string"); | 34 error ("sigtype must be a string"); |
35 elseif (rows (sigtype) != 1) | 35 elseif (rows (sigtype) != 1) |
36 [nr, nc] = size (sigtype); | 36 [nr, nc] = size (sigtype); |