summaryrefslogtreecommitdiff
path: root/macros/impz.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/impz.sci')
-rw-r--r--macros/impz.sci28
1 files changed, 14 insertions, 14 deletions
diff --git a/macros/impz.sci b/macros/impz.sci
index e4e1ba4..7e2a11c 100644
--- a/macros/impz.sci
+++ b/macros/impz.sci
@@ -9,21 +9,21 @@
// Last Modified on : 3 Feb 2024
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
-/*
-Calling Sequence
- [x, t] = impz (b) ¶
- [x, t] = impz (b, a) ¶
- [x, t] = impz (b, a, n) ¶
- [x, t] = impz (b, a, n, fs) ¶
- impz (…) ¶
-Generate impulse-response characteristics of the filter.
-The filter coefficients correspond to the the z-plane rational function with numerator b and denominator a. If a is not specified, it defaults to 1.
-If n is not specified, or specified as [], it will be chosen such that the signal has a chance to die down to -120dB, or to not explode beyond 120dB, or to show five periods if there is no significant damping.
-If no return arguments are requested, plot the results.
-Dependencies
- fftfilt
-*/
+
function [x_r, t_r] = impz(b, a, n, fs)
+// Generate impulse-response characteristics of the filter.
+// Calling Sequence
+// [x, t] = impz (b) ¶
+// [x, t] = impz (b, a) ¶
+// [x, t] = impz (b, a, n) ¶
+// [x, t] = impz (b, a, n, fs) ¶
+// impz (…) ¶
+// Description
+// The filter coefficients correspond to the the z-plane rational function with numerator b and denominator a. If a is not specified, it defaults to 1.
+// If n is not specified, or specified as [], it will be chosen such that the signal has a chance to die down to -120dB, or to not explode beyond 120dB, or to show five periods if there is no significant damping.
+// If no return arguments are requested, plot the results.
+// Dependencies
+// fftfilt
if nargin < 1 || nargin > 4 then
error(" impz : Incorrect number of input arguments ")