Skip to content Skip to navigation

Connexions

You are here: Home » Content » Symbols-to-Words (Receiver) (MATLAB)

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

In these lenses

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.
 

Symbols-to-Words (Receiver) (MATLAB)

Module by: Bryan Paul, Aditya Jain. E-mail the authors

Summary: This is a basic building block in most nontrivial communications schemes: mapping received symbols to bit words. For more thorough treatment on this concept, read up on "Bit-to-Symbol Mapping." NOTE: The MATLAB library was used in the initial version of the design but has since been replaced by an updated LabVIEW module. Please see the LabVIEW portion of the receiver for the most current version.


%% Symbols to Words (RECEIVER)
%  ------------------------------------------------------------------------
%  Description: Converts the received symbols from the OFDM symbol spectrum
%               into binary words. It does this by correlating the received
%               symbol with the entire symbol map through a minimization of
%               the absolute value of the difference with each. Note that
%               if one uses multiple constellation points in the same
%               quandrant of the complex plane, it may be necessary to add
%               additional logic here, or ensure the channel effect is
%               removed by equalization.
%
%  Inputs: symbols - Symbols extracted from the OFDM symbol
%          word_to_symbol_map - The complex symbols indexed by the binary
%                               word they represent.
%  Outputs: words - Closest matched binary words after comparison
 
function words = sym2w(symbols, word_to_symbol_map)
%%
    num_subcarriers = size(symbols,2); % Implicit number of sub-carriers
    bits_per_symbol = log2(size(word_to_symbol_map,2));
    % Implicit number of bits per symbol to represent each word
    words = zeros(num_subcarriers, bits_per_symbol); % Initialized array
    for n=1:num_subcarriers
        [v i] = min(abs(word_to_symbol_map-symbols(n)));
        % Subtract each symbol with every symbol in the map, and find the
        % minimum absolute value. This is a great estimate for finding the
        % received word.
        word = dec2bin(i-1,bits_per_symbol); % Convert index to binary string
        for m=1:bits_per_symbol
            words(n,m) = str2num(word(m)); % Convert string to number
        end
    end
end

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks