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

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

<refentry version="5.0-subset Scilab" xml:id="cconv" 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>cconv</refname>
    <refpurpose>Perform circular convolution of two vectors.</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Syntax</title>
   <synopsis>
   o = cconv(a, b)
   o = cconv(a, b, n)
   
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
        <varlistentry>
            <term>a:</term>
            <listitem><para> Vector. Real or complex input vector.</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>b:</term>
            <listitem><para> Vector. Real or complex input vector.</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>n:</term>
            <listitem><para> Integer. Length of the circular convolution. Defaults to length(a) + length(b) - 1.</para></listitem>
        </varlistentry>
        <varlistentry>
            <term>o:</term>
            <listitem><para> Vector. Resulting circular convolution sequence.</para></listitem>
        </varlistentry>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
This function computes the circular convolution of two vectors `a` and `b`. If `n` is not provided, it defaults to length(a) + length(b) - 1. When `n` equals length(a) + length(b) - 1, the circular convolution is equivalent to the linear convolution computed with `conv`.
   </para>
   <para>
</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
a = [1, 2, 3]
b = [4, 5, 6]
o = cconv(a, b, 3)

   ]]></programlisting>
</refsection>

<refsection>
   <title>Authors</title>
   <simplelist type="vert">
   <member>Parthasarathi Panda (parthasarathipanda314@gmail.com)</member>
   </simplelist>
</refsection>
</refentry>
