summaryrefslogtreecommitdiff
path: root/help/en_US
diff options
context:
space:
mode:
authorSunil Shetye2018-07-25 17:11:09 +0530
committerSunil Shetye2018-07-26 23:50:17 +0530
commit1251f70aa3442736ce6fd9c4fb7fbce412af5a52 (patch)
tree360311ffaf6151c5066439f481e8ac38cfd047b9 /help/en_US
parent9ca7882cee16ad48b18df989e8300c697010e55a (diff)
downloadFOSSEE-Signal-Processing-Toolbox-1251f70aa3442736ce6fd9c4fb7fbce412af5a52.tar.gz
FOSSEE-Signal-Processing-Toolbox-1251f70aa3442736ce6fd9c4fb7fbce412af5a52.tar.bz2
FOSSEE-Signal-Processing-Toolbox-1251f70aa3442736ce6fd9c4fb7fbce412af5a52.zip
code changes by Kartik Hegde during FOSSEE Fellowship 2018
Diffstat (limited to 'help/en_US')
-rw-r--r--help/en_US/ac2poly.xml2
-rw-r--r--help/en_US/armcov.xml41
-rw-r--r--help/en_US/buffer.xml10
-rw-r--r--help/en_US/cconv.xml51
-rw-r--r--help/en_US/cummax.xml34
-rw-r--r--help/en_US/decimate.xml58
-rw-r--r--help/en_US/filtfilt.xml7
-rw-r--r--help/en_US/filtic.xml15
-rw-r--r--help/en_US/firtype.xml42
-rw-r--r--help/en_US/fwhmjlt.xml35
-rw-r--r--help/en_US/fwht.xml2
-rw-r--r--help/en_US/helperHarmonicDistortion.xml81
-rw-r--r--help/en_US/helperHarmonicDistortionAmplifier.xml23
-rw-r--r--help/en_US/icceps.xml39
-rw-r--r--help/en_US/impz.xml51
-rw-r--r--help/en_US/impzlength.xml42
-rw-r--r--help/en_US/intfilt.xml58
-rw-r--r--help/en_US/is2rc.xml34
-rw-r--r--help/en_US/isallpass.xml72
-rw-r--r--help/en_US/oct_interp.xml (renamed from help/en_US/interp.xml)6
20 files changed, 616 insertions, 87 deletions
diff --git a/help/en_US/ac2poly.xml b/help/en_US/ac2poly.xml
index e90759d..33cbd96 100644
--- a/help/en_US/ac2poly.xml
+++ b/help/en_US/ac2poly.xml
@@ -57,6 +57,6 @@ Parthe Pandit
<refsection>
<title>Bibliography</title>
- <para>Kay, Steven M. Modern Spectral Estimation. Englewood Cliffs, NJ: Prentice-Hall, 1988.</para>
+ <para>kartik Kay, Steven M. Modern Spectral Estimation. Englewood Cliffs, NJ: Prentice-Hall, 1988.</para>
</refsection>
</refentry>
diff --git a/help/en_US/armcov.xml b/help/en_US/armcov.xml
index 62e33b7..79ed57c 100644
--- a/help/en_US/armcov.xml
+++ b/help/en_US/armcov.xml
@@ -17,7 +17,46 @@
<refnamediv>
<refname>armcov</refname>
- <refpurpose></refpurpose>
+ <refpurpose>This function uses the modified covariance method to fit a pth-order autoregressive (AR) model to the input signal x </refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ a=armcov(x,p)
+ [a,e] = armcov(x,p)
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>x:</term>
+ <listitem><para> input signal</para></listitem></varlistentry>
+ <varlistentry><term>p:</term>
+ <listitem><para> order</para></listitem></varlistentry>
+ <varlistentry><term>a:</term>
+ <listitem><para> output of an AR system driven by white noise</para></listitem></varlistentry>
+ <varlistentry><term>e:</term>
+ <listitem><para> variance estimate</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+This function uses the modified covariance method to fit a pth-order autoregressive (AR) model to the input signal x.
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+A = [1 -2.7607 3.8106 -2.6535 0.9238];
+y = filter(1,A,0.2*rand(1024,1,"normal"));
+arcoeffs = armcov(y,4)
+
+ ]]></programlisting>
+
+</refsection>
</refentry>
diff --git a/help/en_US/buffer.xml b/help/en_US/buffer.xml
index 24b5214..9a8db7b 100644
--- a/help/en_US/buffer.xml
+++ b/help/en_US/buffer.xml
@@ -56,11 +56,11 @@ This function buffers the given data into a matrix of signal frames
<title>Examples</title>
<programlisting role="example"><![CDATA[
buffer(1,3,2)
-ans =
-0 0
-0 1
-1 0
-This function is being called from Octave
+//ans =
+//0 0
+//0 1
+//1 0
+//This function is being called from Octave
]]></programlisting>
</refsection>
</refentry>
diff --git a/help/en_US/cconv.xml b/help/en_US/cconv.xml
index 5c9a665..3cb0ea8 100644
--- a/help/en_US/cconv.xml
+++ b/help/en_US/cconv.xml
@@ -17,7 +17,56 @@
<refnamediv>
<refname>cconv</refname>
- <refpurpose>[nargout,nargin]=argn();</refpurpose>
+ <refpurpose> circularly convolves vectors a and b. n is the length of the resulting vector. </refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ o = cconv(a,b)
+ o = cconv(a,b,n)
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>a:</term>
+ <listitem><para> a real or complex vector.</para></listitem></varlistentry>
+ <varlistentry><term>b:</term>
+ <listitem><para> a real or complex vector.</para></listitem></varlistentry>
+ <varlistentry><term>n:</term>
+ <listitem><para> length of circular convolution</para></listitem></varlistentry>
+ <varlistentry><term>o:</term>
+ <listitem><para> convolution sequence</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+This function buffers the given data into a matrix of signal frames
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+a=[1 2 3]
+b=[4 5 6]
+o=cconv(a,b,3)
+
+//Output : o= 31 31 28
+ ]]></programlisting>
+
+ <programlisting role="example"><![CDATA[
+a=[1 2+%i 4]
+b=[2 3*%i 5]
+o=cconv(a,b)
+o=clean(o)
+
+//Output: o= 2. 4. + 5.i 10. + 6.i 10. + 17.i 20.
+ ]]></programlisting>
+</refsection>
+
</refentry>
diff --git a/help/en_US/cummax.xml b/help/en_US/cummax.xml
index 76c863a..e385ac0 100644
--- a/help/en_US/cummax.xml
+++ b/help/en_US/cummax.xml
@@ -25,32 +25,42 @@
<title>Calling Sequence</title>
<synopsis>
M = cummax(A)
- returns the cumulative maximum of the arguments of A. The dimension
- of M is same as the dimension of A. If A is a 2D matrix, the operation
- is performed along the columns. For a hypermatrix, the operation is
- performed along the first non-zero dimension
M = cummax(A,dim)
- The operation is performed along the dimension specified by dim
M = cummax(_,direction)
- direction specifies as the direction of operation
-
</synopsis>
</refsynopsisdiv>
<refsection>
<title>Parameters</title>
<variablelist>
+
+ <varlistentry><term>A:</term>
+ <listitem><para> positive integer value<para></para>For complex elements, cummax compares the magnitude of elements. If the magnitude are same, phase angles are compared.</para></listitem></varlistentry>
+ <varlistentry><term>dim:</term>
+ <listitem><para> Dimension to operate along<para></para>If no dimension is specified, then the default value is the first array dimension whose value is greater than 1 </para></listitem></varlistentry>
+ <varlistentry><term>direction:</term>
+ <listitem><para>Direction of cumulation<para></para>If the direction is forward, cummax works from 1 to end of the active dimension. Otherwise, it works in the opposite sense</para></listitem></varlistentry>
+
</variablelist>
</refsection>
<refsection>
+ <title>Description</title>
+ <para>
+The function returns the cumulative maximum elements of the input vector/array.
+
+
+</para>
+</refsection>
+
+<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
-1) Cumulative maximum values in a vector
+Cumulative maximum values in a vector
v = [8 9 1 10 6 1 3 6 10 10]
M = cummax(v)
-Expected output: [8 8 1 1 1 1 1 1 1 1]
+//Expected output: [8 9 9 10 10 10 10 10 10 10]
]]></programlisting>
</refsection>
@@ -62,9 +72,5 @@ Expected output: [8 8 1 1 1 1 1 1 1 1]
</simplelist>
</refsection>
-<refsection>
- <title>See also</title>
- <simplelist type="inline">
- </simplelist>
-</refsection>
+
</refentry>
diff --git a/help/en_US/decimate.xml b/help/en_US/decimate.xml
index bc0efe7..30440dd 100644
--- a/help/en_US/decimate.xml
+++ b/help/en_US/decimate.xml
@@ -17,7 +17,63 @@
<refnamediv>
<refname>decimate</refname>
- <refpurpose>rhs = argn(2)</refpurpose>
+ <refpurpose>Decimation — decrease sample rate by integer factor</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ y = decimate(x,q)
+ y = decimate(x,q,n)
+ y = decimate (…, "fir")
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>x:</term>
+ <listitem><para> input sequence</para></listitem></varlistentry>
+ <varlistentry><term>q:</term>
+ <listitem><para> reduction factor </para></listitem></varlistentry>
+ <varlistentry><term>n:</term>
+ <listitem><para> filter order</para></listitem></varlistentry>
+ <varlistentry><term>ftype:</term>
+ <listitem><para> filter type: iir or fir</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+y = decimate(x,q) reduces the sample rate of x, the input signal, by a factor of q.
+By default, an order n Chebyshev type I filter is used. If n is not specified, the default is 8.
+If the optional argument "fir" is given, an order n FIR filter is used, with a default order of 30 if n is not given.
+Note that q must be an integer for this rate change method.
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+t = 0:.00025:1;
+x = sin(2*%pi*30*t) + sin(2*%pi*60*t);
+y = decimate(x,4);
+subplot(211)
+plot2d3((0:120),x(1:121))
+subplot(212)
+plot2d3((0:30),y(1:31))
+ ]]></programlisting>
+
+</refsection>
+
+
+<refsection>
+ <title>Authors</title>
+ <simplelist type="vert">
+ <member>Ayush Baid</member>
+ </simplelist>
+</refsection>
+
+
</refentry>
diff --git a/help/en_US/filtfilt.xml b/help/en_US/filtfilt.xml
index baf8dfe..e8d9c99 100644
--- a/help/en_US/filtfilt.xml
+++ b/help/en_US/filtfilt.xml
@@ -17,7 +17,7 @@
<refnamediv>
<refname>filtfilt</refname>
- <refpurpose></refpurpose>
+ <refpurpose> Zero phase digital filtering </refpurpose>
</refnamediv>
@@ -51,8 +51,9 @@ In theory, it forwards and reverse filters the signal and corrects phase distort
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
-1. [a,b]=filtfilt (1,2i,[i -4 0])
-a = [0.00000 - 0.25000i 1.00000 + 0.00000i 0.00000 + 0.00000i]
+1. [a]=filtfilt (1,2i,[i -4 0])
+//Expected output
+//a = [-0.25i 1 0]
]]></programlisting>
</refsection>
</refentry>
diff --git a/help/en_US/filtic.xml b/help/en_US/filtic.xml
index ec5e08e..f27f53e 100644
--- a/help/en_US/filtic.xml
+++ b/help/en_US/filtic.xml
@@ -17,7 +17,7 @@
<refnamediv>
<refname>filtic</refname>
- <refpurpose></refpurpose>
+ <refpurpose>This function finds the initial conditions for the delays in the transposed direct-form II filter implementation</refpurpose>
</refnamediv>
@@ -54,12 +54,13 @@ The vectors b and a represent the numerator and denominator coefficients of the
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
-filtic([i,1,-i,5], [1,2,3i], [0.8i,7,9])
-ans =
-0.00000 - 22.60000i
-2.40000 + 0.00000i
-0.00000 + 0.00000i
-This function is being called from Octave
+filtic([%i,1,-%i,5], [1,2,3*%i], [0.8*%i,7,9])
+//Expected Output:
+//ans =
+//-22.6i
+// 2.4
+// 0
+
]]></programlisting>
</refsection>
</refentry>
diff --git a/help/en_US/firtype.xml b/help/en_US/firtype.xml
index 8050565..c4bc7e5 100644
--- a/help/en_US/firtype.xml
+++ b/help/en_US/firtype.xml
@@ -17,7 +17,47 @@
<refnamediv>
<refname>firtype</refname>
- <refpurpose>if (type(b)~=1) then</refpurpose>
+ <refpurpose> This function identifies Type of linear phase FIR filter
+</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ t=firtype(b)
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>t:</term>
+ <listitem><para> type of an FIR filter </para></listitem></varlistentry>
+ <varlistentry><term>b:</term>
+ <listitem><para> Filter coefficients</para></listitem></varlistentry>
+
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+"t = firtype(b)" determines the type, t, of an FIR filter with coefficients b. </para><para>"t" can be 1, 2, 3, or 4. </para><para>
+The filter must be real and have linear phase.
+
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+b=[9.2762e-05 9.5482e-02 4.0443e-01 4.0443e-01 9.5482e-02 9.2762e-05]
+firtype(b)
+//Expected Output
+//2
+ ]]></programlisting>
+</refsection>
+
+
+
</refentry>
diff --git a/help/en_US/fwhmjlt.xml b/help/en_US/fwhmjlt.xml
index 4663d1a..c093385 100644
--- a/help/en_US/fwhmjlt.xml
+++ b/help/en_US/fwhmjlt.xml
@@ -17,7 +17,40 @@
<refnamediv>
<refname>fwhmjlt</refname>
- <refpurpose>rhs = argn(2)</refpurpose>
+ <refpurpose>This function Computes peak full-width at half maximum</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ f = fwhm (y)
+ f = fwhm (x, y)
+ f = fwhm (…, "zero")
+ f = fwhm (…, "min")
+ f = fwhm (…, "alevel", level)
+ f = fwhm (…, "rlevel", level)
+ </synopsis>
+</refsynopsisdiv>
+
+
+
+<refsection>
+ <title>Description</title>
+ <para>
+Compute peak full-width at half maximum (FWHM) or at another level of peak maximum for vector or matrix data y, optionally sampled as y(x). If y is a matrix, return FWHM for each column as a row vector.<para></para>The default option "zero" computes fwhm at half maximum, i.e. 0.5*max(y). The option "min" computes fwhm at the middle curve, i.e. 0.5*(min(y)+max(y)). <para></para>The option "rlevel" computes full-width at the given relative level of peak profile<para></para>The option "alevel" computes full-width at the given absolute level of y.
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+t=-50:0.01:50;
+y=(1/(2*sqrt(2*%pi)))*exp(-(t.^2)/8);
+z=fwhmjlt(y)
+//Expected Output
+//470.96442
+ ]]></programlisting>
+</refsection>
+
+
</refentry>
diff --git a/help/en_US/fwht.xml b/help/en_US/fwht.xml
index 4140453..4e0d8a6 100644
--- a/help/en_US/fwht.xml
+++ b/help/en_US/fwht.xml
@@ -17,7 +17,7 @@
<refnamediv>
<refname>fwht</refname>
- <refpurpose>Compute the Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm</refpurpose>
+ <refpurpose>Compute the Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm..</refpurpose>
</refnamediv>
diff --git a/help/en_US/helperHarmonicDistortion.xml b/help/en_US/helperHarmonicDistortion.xml
new file mode 100644
index 0000000..b49a559
--- /dev/null
+++ b/help/en_US/helperHarmonicDistortion.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * This help file was generated from helperHarmonicDistortion.sci using help_from_sci().
+ *
+ -->
+
+<refentry version="5.0-subset Scilab" xml:id="helperHarmonicDistortion" xml:lang="en"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:ns3="http://www.w3.org/1999/xhtml"
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
+ xmlns:scilab="http://www.scilab.org"
+ xmlns:db="http://docbook.org/ns/docbook">
+
+ <refnamediv>
+ <refname>helperHarmonicDistortion</refname>
+ <refpurpose>helperHarmonicDistortionADC Helper function for HarmonicDistortionExample.m</refpurpose>
+ </refnamediv>
+
+
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ outputVoltage=helperHarmonicDistortion(inputVoltage)
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>inputVmax:</term>
+ <listitem><para> Maximum operating voltage times the sinusoidal signal.</para></listitem></varlistentry>
+
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+Analizing the harmonic distortion of a weakly non-linear system in the presence of noise....
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+VmaxPk = 2;
+Fi = 2000;
+Fs = 44.1e3;
+Tstop = 50e-3;
+t = 0:1/Fs:Tstop;
+inputVmax = VmaxPk*sin(2*%pi*Fi*t);
+outputVmax = helperHarmonicDistortion(inputVmax);
+plot(t, outputVmax)
+replot([0,-2.5,0.005,2.5])
+xlabel('Time')
+ylabel('Output Voltage')
+title('Amplifier output')
+ ]]></programlisting>
+ <scilab:image>
+ VmaxPk = 2;
+ Fi = 2000;
+ Fs = 44.1e3;
+ Tstop = 50e-3;
+ t = 0:1/Fs:Tstop;
+ inputVmax = VmaxPk*sin(2*%pi*Fi*t);
+ outputVmax = helperHarmonicDistortion(inputVmax);
+ plot(t, outputVmax)
+ replot([0,-2.5,0.005,2.5])
+ xlabel('Time')
+ ylabel('Output Voltage')
+ title('Amplifier output')
+ </scilab:image>
+
+</refsection>
+
+
+</refentry>
diff --git a/help/en_US/helperHarmonicDistortionAmplifier.xml b/help/en_US/helperHarmonicDistortionAmplifier.xml
deleted file mode 100644
index c58cc51..0000000
--- a/help/en_US/helperHarmonicDistortionAmplifier.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- *
- * This help file was generated from helperHarmonicDistortionAmplifier.sci using help_from_sci().
- *
- -->
-
-<refentry version="5.0-subset Scilab" xml:id="helperHarmonicDistortionAmplifier" xml:lang="en"
- xmlns="http://docbook.org/ns/docbook"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns:ns3="http://www.w3.org/1999/xhtml"
- xmlns:mml="http://www.w3.org/1998/Math/MathML"
- xmlns:scilab="http://www.scilab.org"
- xmlns:db="http://docbook.org/ns/docbook">
-
- <refnamediv>
- <refname>helperHarmonicDistortionAmplifier</refname>
- <refpurpose>helperHarmonicDistortionADC Helper function for HarmonicDistortionExample.m</refpurpose>
- </refnamediv>
-
-</refentry>
diff --git a/help/en_US/icceps.xml b/help/en_US/icceps.xml
index bd10adc..0cae986 100644
--- a/help/en_US/icceps.xml
+++ b/help/en_US/icceps.xml
@@ -20,4 +20,43 @@
<refpurpose>ICCEPS computes the inverse cepstrum of a real-valued input. This spectrum</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ inv_ceps = icceps(xhat,remv_samp)
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>remv_samp:</term>
+ <listitem><para> Number of samples of delay to be removed </para></listitem></varlistentry>
+ <varlistentry><term>xhat:</term>
+ <listitem><para> real valued input </para></listitem></varlistentry>
+ <varlistentry><term>inv_ceps:</term>
+ <listitem><para> Inverse cepstrum output </para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+inv_ceps = icceps(xhat,remv_samp) returns the inverse complex cepstrum of the real data sequence "xhat", removing "remv_samp" samples of delay. If "xhat" was obtained with cceps(x), then the amount of delay that was added to x was the element of round(unwrap(angle(fft(x)))/pi) corresponding to π radians.
+
+</para>
+</refsection>
+
+<refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+xhat=[ 2.2428 -0.0420 -0.0210 0.0045 0.0366 0.0788 0.1386 0.2327 0.4114 0.9249]
+icc = icceps(xhat,2);
+round(icc)
+//EXPECTED OUTPUT:
+// 2 3 4 5 6 7 8 9 10 1
+
+ ]]></programlisting>
+</refsection>
+
</refentry>
diff --git a/help/en_US/impz.xml b/help/en_US/impz.xml
index 3cde46f..197c5c8 100644
--- a/help/en_US/impz.xml
+++ b/help/en_US/impz.xml
@@ -17,7 +17,8 @@
<refnamediv>
<refname>impz</refname>
- <refpurpose></refpurpose>
+ <refpurpose> It gives Impulse response of digital filter
+</refpurpose>
</refnamediv>
@@ -31,4 +32,52 @@
[x_r, t_r] = impz(b, a, n, fs)
</synopsis>
</refsynopsisdiv>
+
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>x_r:</term>
+ <listitem><para> impz chooses the number of samples and returns the response in the column vector, x_r.</para></listitem></varlistentry>
+ <varlistentry><term>t_r:</term>
+ <listitem><para> impz returns the sample times in the column vector, t_r </para></listitem></varlistentry>
+ <varlistentry><term>b:</term>
+ <listitem><para> numerator coefficients of the filter</para></listitem></varlistentry>
+ <varlistentry><term>a:</term>
+ <listitem><para>denominator coefficients of the filter</para></listitem></varlistentry>
+ <varlistentry><term>n:</term>
+ <listitem><para> samples of the impulse response t(by default ,n = length(t) and is computed automatically.</para></listitem></varlistentry>
+ <varlistentry><term>fs:</term>
+ <listitem><para>sampling frequency</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+[x_r,t_r] = impz(b,a) returns the impulse response of the filter with numerator coefficients, b, and denominator coefficients, a. impz chooses the number of samples and returns the response in the column vector, x_r, and the sample times in the column vector, t_r. t_r = [0:n-1]' and n = length(t) is computed automatically.
+</para>
+</refsection>
+
+<refsection>
+ <title>Example 1</title>
+ <programlisting role="example"><![CDATA[
+[x_r,t_r]=impz([0 1 1],[1 -3 3 -1],10)
+//EXPECTED OUTPUT :
+// t_r = 0. 1. 2. 3. 4. 5. 6. 7. 8. 9
+// x_r= 0. 1. 4. 9. 16. 25. 36. 49 64 81
+
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Example 2</title>
+ <programlisting role="example"><![CDATA[
+[x_r,t_r]=impz(1,[1 1],5)
+//EXPECTED OUTPUT
+// t_r = 0. 1. 2. 3. 4
+//x_r = 1. - 1. 1. - 1. 1.
+ ]]></programlisting>
+</refsection>
+
</refentry>
diff --git a/help/en_US/impzlength.xml b/help/en_US/impzlength.xml
index 1b5adc8..6ed57fc 100644
--- a/help/en_US/impzlength.xml
+++ b/help/en_US/impzlength.xml
@@ -24,7 +24,31 @@
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>
- len = impzlength(b, a, tol)
+ len=impzlength(b,a)
+ len=impzlength(sos)
+ len=impzlength(b,a,tol)
+
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>b:</term>
+ <listitem><para>Numerator coefficients. real|complex - vector|scalar</para></listitem></varlistentry>
+ <varlistentry><term>a:</term>
+ <listitem><para> Denominator coefficients. real|complex - vector|scalar</para></listitem></varlistentry>
+ <varlistentry><term>sos:</term>
+ <listitem><para> Second order estimates. real|complex - matrix (K-by-6)</para></listitem></varlistentry>
+ <varlistentry><term>tol:</term>
+ <listitem><para> Tolerance for estimating the effective length of an IIR filter impulse response. scalar</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+len = impzlength(b, a, tol)
returns the impulse response length for the causal discrete-time filter
with the transfer function coefficients for numerator and denominator in
a and b respectively. For stable IIR filters, len is the effective length
@@ -39,23 +63,18 @@
specifies a tolerance for estimating the effective impulse response
length in case of an IIR filter. By default, tol is 5e-5. Increasing tol
leads to shorter len and vice-versa
-
- </synopsis>
-</refsynopsisdiv>
-
-<refsection>
- <title>Parameters</title>
- <variablelist>
- </variablelist>
+</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
-1) Low pass IIR filter with pole at 0.9
+//Low pass IIR filter with pole at 0.9
b = 1;
a = [1 -0.9];
len = impzlength(b,a);
+//Expected Output :
+//len=93
]]></programlisting>
</refsection>
@@ -63,7 +82,8 @@ len = impzlength(b,a);
<refsection>
<title>See also</title>
<simplelist type="inline">
- <member><link linkend="designfilt">| digitalFilter | impz | zp2sos</link></member>
+ <member><link linkend="impz"></link></member><para></para>
+ <member><link linkend="zp2sos"></link></member><para></para>
</simplelist>
</refsection>
diff --git a/help/en_US/intfilt.xml b/help/en_US/intfilt.xml
index a674813..29c93f6 100644
--- a/help/en_US/intfilt.xml
+++ b/help/en_US/intfilt.xml
@@ -17,7 +17,63 @@
<refnamediv>
<refname>intfilt</refname>
- <refpurpose></refpurpose>
+ <refpurpose>The "intfilt" function estimate Interpolated FIR Filter Design</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ h=intfilt(R,L,freqmult)
+ [h a]=intfilt(R,L,freqmult)
+
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>R:</term>
+ <listitem><para> Samples. It should be numeric</para></listitem></varlistentry>
+ <varlistentry><term>L:</term>
+ <listitem><para> bandlimited interpolation samples. It must be nonzero.</para></listitem></varlistentry>
+ <varlistentry><term>freqmult:</term>
+ <listitem><para> bandlimitedness of ALPHA times the Nyquist frequency. It can be numeric or character ('B' or 'L', B is length (N+1)*L-1 for N odd and (N+1)*L for N even) </para></listitem></varlistentry>
+
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+"h=intfilt(R,L,freqmult)" designs a linear phase FIR filter. This function does ideal bandlimited interpolation using the nearest 2*L nonzero samples, when used on a sequence inserted with l-1 consecutive zeros between every l samples. It assumes an original bandlimitedness of "freqmult" times the Nyquist frequency.
+</para>
+</refsection>
+
+<refsection>
+ <title>Example 1</title>
+ <programlisting role="example"><![CDATA[
+h1=intfilt(2,3,'l');
+//EXPECTED OUTPUT :
+// -0.0625 0. 0.5625 1. 0.5625 0. -0.0625
+
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Example 2</title>
+ <programlisting role="example"><![CDATA[
+h1=intfilt(4,1,1);
+//EXPECTED OUTPUT :
+// 0.3001054 0.6366198 0.9003163 1. 0.9003163 0.6366198 0.3001054
+
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Authors</title>
+ <simplelist type="vert">
+ <member>Jitendra Singh</member>
+ </simplelist>
+</refsection>
+
</refentry>
diff --git a/help/en_US/is2rc.xml b/help/en_US/is2rc.xml
index 8f1bd14..0da550b 100644
--- a/help/en_US/is2rc.xml
+++ b/help/en_US/is2rc.xml
@@ -25,7 +25,7 @@
<title>Calling Sequence</title>
<synopsis>
K = is2rc(isin)
-
+
</synopsis>
</refsynopsisdiv>
@@ -42,28 +42,40 @@
<refsection>
<title>Description</title>
<para>
-This function returns a vector of reflection coefficients from a vector of inverse sine parameters
-output array has k(i) = sin(pi/2*isin(i))
- </para>
- <para>
-Example
-k = [0.3090 0.9801 0.0031 0.0082 -0.0082];
-isin = rc2is(k) //Gives inverse sine parameters
-k_dash = is2rc(isin)
+This function returns a vector of reflection coefficients from a vector of inverse sine parameters.<para></para>output array has k(i) = sin(pi/2*isin(i))
+
</para>
<para>
</para>
</refsection>
<refsection>
+ <title>Example 1</title>
+ <programlisting role="example"><![CDATA[
+ k = [0.3090 0.9801 0.0031 0.0082 -0.0082];
+ isin = rc2is(k) //Gives inverse sine parameters
+ k_dash = is2rc(isin)
+// EXPECTED OUTPUT :
+//isin = [0.1999886 0.8727832 0.0019735 0.0052203 -0.0052203 ]
+//k_dash =[0.309 0.9801 0.0031 0.0082 - 0.0082]
+ ]]></programlisting>
+</refsection>
+
+<refsection>
<title>See also</title>
<simplelist type="inline">
<member><link linkend="rc2is">rc2is</link></member>
<member><link linkend="rc2poly">rc2poly</link></member>
<member><link linkend="rc2ac">rc2ac</link></member>
<member><link linkend="rc2lar">rc2lar</link></member>
- <member><link linkend="Author">Author</link></member>
- <member><link linkend="Parthe">Pandit</link></member>
+
+ </simplelist>
+</refsection>
+
+<refsection>
+ <title>Authors</title>
+ <simplelist type="vert">
+ <member>Parthe Pandit</member>
</simplelist>
</refsection>
diff --git a/help/en_US/isallpass.xml b/help/en_US/isallpass.xml
index b519d07..4dbf9ab 100644
--- a/help/en_US/isallpass.xml
+++ b/help/en_US/isallpass.xml
@@ -17,7 +17,77 @@
<refnamediv>
<refname>isallpass</refname>
- <refpurpose>[nargout,nargin]=argn();</refpurpose>
+ <refpurpose>Determines whether the filter is allpass or not</refpurpose>
</refnamediv>
+<refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ flag = isallpass(b,a)
+ flag = isallpass(sos)
+ flag = isallpass(...,tol)
+
+ </synopsis>
+</refsynopsisdiv>
+
+<refsection>
+ <title>Parameters</title>
+ <variablelist>
+ <varlistentry><term>b:</term>
+ <listitem><para>vector containing zero coefficients of the transfer function</para></listitem></varlistentry>
+ <varlistentry><term>a:</term>
+ <listitem><para> vector containing pole coefficients of the transfer functtion</para></listitem></varlistentry>
+ <varlistentry><term>sos:</term>
+ <listitem><para> Second order estimates. real|complex - matrix (K-by-6)</para></listitem></varlistentry>
+ <varlistentry><term>tol:</term>
+ <listitem><para> tolerance is used to determine when two numbers are close enough to be considered equal. scalar</para></listitem></varlistentry>
+ </variablelist>
+</refsection>
+
+<refsection>
+ <title>Description</title>
+ <para>
+flag = isallpass(b,a) returns a logical output that is either 1 or 0 depending on output parameter "flag" by the filter specified by numerator coefficients, b, and denominator coefficients, a, is an allpass filter or not. If the filter is not an allpass filter, flag is equal to false.<para></para>flag = isallpass(sos) returns true if the filter specified by second order sections matrix ie sos, is an allpass filter.<para></para> sos is a K-by-6 matrix, where the number of sections, K, must be greater than or equal to 2. Each row of sos corresponds to the coefficients of a second order (biquad) filter. The ith row of the sos matrix corresponds to [bi(1) bi(2) bi(3) ai(1) ai(2) ai(3)].
+</para>
+</refsection>
+
+<refsection>
+ <title>Example 1</title>
+ <programlisting role="example"><![CDATA[
+k = [1/2 1/3 1/4 1/5];
+[b,a] = latc2tf(k,'allpass');
+flag_isallpass = isallpass(b,a)
+//Expected Output
+//flag_isallpass =1
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Example 2</title>
+ <programlisting role="example"><![CDATA[
+b = [1/3 1/4 1/5 1];
+a=b($:-1:1);
+flag = isallpass(b,a)
+//Expected Output
+//flag = 1
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Example 3</title>
+ <programlisting role="example"><![CDATA[
+
+flag = isallpass(1,[1 1])
+//Expected Output
+//flag = 0
+ ]]></programlisting>
+</refsection>
+
+<refsection>
+ <title>Authors</title>
+ <simplelist type="vert">
+ <member>Parthasarathi Panda</member>
+ </simplelist>
+</refsection>
+
</refentry>
diff --git a/help/en_US/interp.xml b/help/en_US/oct_interp.xml
index ec22cbc..48146ea 100644
--- a/help/en_US/interp.xml
+++ b/help/en_US/oct_interp.xml
@@ -2,11 +2,11 @@
<!--
*
- * This help file was generated from interp.sci using help_from_sci().
+ * This help file was generated from oct_interp.sci using help_from_sci().
*
-->
-<refentry version="5.0-subset Scilab" xml:id="interp" xml:lang="en"
+<refentry version="5.0-subset Scilab" xml:id="oct_interp" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
@@ -16,7 +16,7 @@
xmlns:db="http://docbook.org/ns/docbook">
<refnamediv>
- <refname>interp</refname>
+ <refname>oct_interp</refname>
<refpurpose>function y = interp(x, q, n, Wc)</refpurpose>
</refnamediv>