comparison scripts/control/system/sysidx.m @ 6046:34f96dd5441b

[project @ 2006-10-10 16:10:25 by jwe]
author jwe
date Tue, 10 Oct 2006 16:10:31 +0000
parents ec8c33dcd1bf
children 93c65f2a5668
comparison
equal deleted inserted replaced
6045:421d8a903df7 6046:34f96dd5441b
26 ## @end deftypefn 26 ## @end deftypefn
27 27
28 function idxvec = sysidx (sys, sigtype, signamelist) 28 function idxvec = sysidx (sys, sigtype, signamelist)
29 29
30 if (nargin != 3) 30 if (nargin != 3)
31 usage ("idxvec = sysidx (sys, sigtype, signamelist)"); 31 print_usage ();
32 elseif (! isstruct (sys)) 32 elseif (! isstruct (sys))
33 error ("sys must be a system data structure"); 33 error ("sys must be a system data structure");
34 elseif (! ischar (sigtype)) 34 elseif (! ischar (sigtype))
35 error ("sigtype must be a string"); 35 error ("sigtype must be a string");
36 elseif (rows (sigtype) != 1) 36 elseif (rows (sigtype) != 1)