Mercurial > octave-nkf
comparison scripts/control/system/sysgetsignals.m @ 7133:1d0d7be2d0f8
[project @ 2007-11-08 16:25:44 by jwe]
author | jwe |
---|---|
date | Thu, 08 Nov 2007 16:25:44 +0000 |
parents | a1dbe9d80eee |
children | 8aa770b6c5bf |
comparison
equal
deleted
inserted
replaced
7132:b01db194c526 | 7133:1d0d7be2d0f8 |
---|---|
144 | 144 |
145 function [stname, inname, outname, yd] = sysgetsignals (sys, sigid, signum, strflg) | 145 function [stname, inname, outname, yd] = sysgetsignals (sys, sigid, signum, strflg) |
146 | 146 |
147 ## Adapted from ss | 147 ## Adapted from ss |
148 | 148 |
149 if(nargin < 1 | nargin > 4 | nargout > 4) | 149 if (nargin < 1 || nargin > 4) |
150 print_usage (); | |
151 elseif(nargin > 1 & nargout > 1) | |
152 print_usage (); | 150 print_usage (); |
153 elseif( ! isstruct(sys) ) | 151 elseif( ! isstruct(sys) ) |
154 error("input argument must be a system data structure"); | 152 error("input argument must be a system data structure"); |
155 endif | 153 endif |
156 if(nargin < 4) strflg = 0; endif | 154 if(nargin < 4) strflg = 0; endif |