diff options
Diffstat (limited to 'nInputData.sci')
-rw-r--r-- | nInputData.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nInputData.sci b/nInputData.sci new file mode 100644 index 0000000..59a3b64 --- /dev/null +++ b/nInputData.sci @@ -0,0 +1,15 @@ +function varargout = nInputSeries(varargin) + [lhs rhs] = argn(0) + if rhs <> 1 then + error(msprintf(gettext("%s: Wrong number of input arguments."),"iddataplot")) + end + iddataData = varargin(1) + if typeof(iddataData) <> 'iddata' then + error(msprintf(gettext("%s:Wrong type for input argument %d: ""iddata"" expected."),"nInputSeries",1)) + end + if ~size(iddataData.InputData,'*') then + varargout(1) = 1 + else + varargout(1) = size(iddataData.InputData,'c') + end +endfunction |