summaryrefslogtreecommitdiff
path: root/nInputData.sci
diff options
context:
space:
mode:
authorttt2018-07-09 16:54:44 +0530
committerttt2018-07-09 16:54:44 +0530
commite5e316e1958e27696d7670e2492992d34ff38b68 (patch)
tree8dab5cc24e31921cfb3c44444d48cfbfd3ff76f8 /nInputData.sci
parent681c88404f9f2861d228d0d0c3bd61b200ca1442 (diff)
downloadFOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.tar.gz
FOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.tar.bz2
FOSSEE-System-Identification-Toolbox-e5e316e1958e27696d7670e2492992d34ff38b68.zip
added scilabs files
Diffstat (limited to 'nInputData.sci')
-rw-r--r--nInputData.sci15
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