diff options
Diffstat (limited to 'frdplot.sci')
-rw-r--r-- | frdplot.sci | 11 |
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 |