Home > freetb4matlab > polynomial > convn.m

convn

PURPOSE ^

% @math{N}-dimensional convolution of matrices @var{a} and @var{b}.

SYNOPSIS ^

function c = convn (a, b, shape = 'full')

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{c} =} convn (@var{a}, @var{b}, @var{shape})
% @math{N}-dimensional convolution of matrices @var{a} and @var{b}.
%
% The size of the output is determined by the @var{shape} argument.
% This can be any of the following character strings:
%
% @table @asis
% @item 'full'
% The full convolution result is returned.  The size out of the output is
% @code{size (@var{a}) + size (@var{b})-1}.  This is the default behavior.
% @item 'same'
% The central part of the convolution result is returned.  The size out of the
% output is the same as @var{a}.
% @item 'valid'
% The valid part of the convolution is returned.  The size of the result is
% @code{max (size (@var{a}) - size (@var{b})+1, 0)}.
% @end table
%
% @seealso{conv, conv2}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003