summaryrefslogtreecommitdiff
path: root/frdplot.sci
diff options
context:
space:
mode:
authorttt2018-07-09 16:54:44 +0530
committerttt2018-07-09 16:54:44 +0530
commite5e316e1958e27696d7670e2492992d34ff38b68 (patch)
tree8dab5cc24e31921cfb3c44444d48cfbfd3ff76f8 /frdplot.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 'frdplot.sci')
-rw-r--r--frdplot.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/frdplot.sci b/frdplot.sci
new file mode 100644
index 0000000..c923429
--- /dev/null
+++ b/frdplot.sci
@@ -0,0 +1,11 @@
+function frdplot(varargin)
+ [lhs rhs] = argn(0)
+ if rhs <> 1 then
+ error(msprintf(gettext("%s: Wrong number of input arguments."),"frdplot"))
+ end
+ frdData = varargin(1)
+ if typeof(frdData) <> 'frd' then
+ error(msprintf(gettext("%s:Wrong type for input argument %d: ""frd"" expected."),"frdplot",1))
+ end
+ bode((frdData.Frequency)',(frdData.ResponseData)')
+endfunction