Skip to content Skip to navigation

OpenStax_CNX

You are here: Home » Content » Words-to-Bits (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.
 

Words-to-Bits (Receiver) (MATLAB)

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

Summary: A very fundamental part of many systems, essentially a parallel to series conversion. 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.


%% Words to Bits (RECEIVER)
%  ------------------------------------------------------------------------
%  Description: This module simply takes the demodulated words and expands
%               them into a bit stream for ease of comparison.
%
%  Inputs: words - Group of bits
%  Outputs: bits - Bit stream
 
function bits = w2b(words)
%%
    num_subcarriers = size(words,1); % Implicit number of subcarriers
    bits_per_symbol = size(words,2); % Implicit bits per symbol
    total_bits = bits_per_symbol*num_subcarriers; % Total number of bits
    bits = zeros(1,total_bits);
 
    for n=1:num_subcarriers
        for m=1:bits_per_symbol            
            bits((n-1)*bits_per_symbol+m) = words(n,m); % Separate one by one
        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