Home > freetb4matlab > comm > pskdemod.m

pskdemod

PURPOSE ^

%

SYNOPSIS ^

function y=pskdemod(x,M,phi,type)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{y} = } pamdemod (@var{x}, @var{m})
% @deftypefnx {Function File} {@var{y} = } pamdemod (@var{x}, @var{m}, @var{phi})
% @deftypefnx {Function File} {@var{y} = } pamdemod (@var{x}, @var{m}, @var{phi}, @var{type})
%
% Demodulates a complex-baseband phase shift keying modulated signal 
% into an information sequence of integers in the range 
% @code{[0 @dots{} M-1]}. @var{phi} controls the initial phase and 
% @var{type} controls the constellation mapping. If @var{type} is set
% to 'Bin' will result in binary encoding, in contrast, if set to 
%'Gray' will give Gray encoding.  An example of Gray-encoded 8-PSK is
%
% @example
% @group
% d = randint(1,1e3,8);
% y = pskmod(d,8,0,'Gray');
% z = awgn(y,20);
% d_est = pskdemod(z,8,0,'Gray');
% plot(z,'rx')
% biterr(d,d_est)
% @end group
% @end example
% @end deftypefn
% @seealso{pskmod}

CROSS-REFERENCE INFORMATION ^

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