<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from sftrans.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="sftrans" 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>sftrans</refname>
    <refpurpose>Transform band edges of a prototype filter (cutoff at W=1) represented in s-plane zero-pole-gain form (Frequency Transformation in Analog domain).</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Calling Sequence</title>
   <synopsis>
   [Sz, Sp, Sg] = sftrans (Sz, Sp, Sg, W, stop)
   [Sz, Sp] = sftrans (Sz, Sp, Sg, W, stop)
   [Sz] = sftrans (Sz, Sp, Sg, W, stop)
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
   <varlistentry><term>Sz:</term>
      <listitem><para> Zeros.</para></listitem></varlistentry>
   <varlistentry><term>Sp:</term>
      <listitem><para> Poles.</para></listitem></varlistentry>
   <varlistentry><term>Sg:</term>
      <listitem><para> Gain.</para></listitem></varlistentry>
   <varlistentry><term>W:</term>
      <listitem><para> Edge of target filter.</para></listitem></varlistentry>
   <varlistentry><term>stop:</term>
      <listitem><para> True(%T or 1) for high pass and band stop filters or false (%F or 0) for low pass and band pass filters.</para></listitem></varlistentry>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
Given a low pass filter represented by poles and zeros in the splane, can be converted into a </para>
<para> low pass (having diffrent cutoff frequency),</para>
<para> high pass,</para>
<para> band pass,</para>
<para> band stop.</para>
<para> by transforming each of the poles and zeros individually.</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
Sz = [1 2 3];
Sp = [4 5 6];
Sg = 15;
W = 20;
stop = %T;
[Sz, Sp, Sg] = sftrans (Sz, Sp, Sg, W, stop)

   ]]></programlisting>
</refsection>

<refsection>
<title>Modified by :</title>
<simplelist type="vert">
<member>Sonu Sharma, RGIT Mumbai (fellow at FOSSEE, IIT Bombay)</member>
    </simplelist>
</refsection>

</refentry>