Code covered by the BSD License
-
circuit_logic(cur_State,n,m)
Function: This defines the circuit logic for a specific convolution
-
compute_Hamm(o,r,block_st,n)
Function: Computes the Hamming Distance.
-
compute_Lp(o,r,block_st,n)
Function: Computes the Lp norm... approximate.
-
decode_1_3(r,n,mem,k,flag)
Function: This is the decoder for a generalized convolution encoder.
-
encode_1_3(m,g,n)
Function: Encodes a Rate 1/3 Convolution Code
-
find_ML_path(node,k)
Function: Computes the ML estimate by traversing the Trellis Map, looking
-
run_me.m
-
View all files
from
Convolutional Encoder/Decoder of Rate 1/N Codes
by Romeil Sandhu
MATLAB code that tests a rate 1/N Convolution Encoder and Decoder schemes via a Trellis map.
|
| compute_Hamm(o,r,block_st,n) |
function dist = compute_Hamm(o,r,block_st,n)
%Function: Computes the Hamming Distance.
%o - lth branch vector of the trellis map
%r - total received vector
%block_st - branch currently on
%n - length of vector block
rhat = r(block_st:block_st+n-1); %Find r branch vector
dist = sum(o ~= rhat); %Computes Hamming Distance
|
|
Contact us at files@mathworks.com