Results 1 to 1 of 1

Math Help - Matlab Convolution coder help

  1. #1
    Newbie
    Joined
    May 2010
    Posts
    1

    Matlab Convolution coder help

    Hey,

    I need some help creating a convolution coder for my school assignment.

    1. One option to do this is, to create a model (example cc_model.mdl has 2 inputs, 4 outputs and a 1 memory block). I would need to create a working model CC (4; 3, 8) with 3 inputs, 4 outputs and a 1 memory block (8 is the constraint length). And then incorporate that to the matlab script which I have.

    Code:
     
    encoding
    · x2 = reshape(x,length(x)/K,K);
    · code_param=[N,K,1];
    · gen=sim2gen('cc_model');
    · [tran_func,code_param]=oct2gen(gen);
    · x=encode(x2,N,K,'convol',gen);
    decoding
    · y=reshape(y,length(y)/N,N);
    · msg_dec=viterbi(y,gen);
    2. Another way to go about this is using the convolution coder block in simulink and use the poly2trellis command, but I have no idea what the parameters should be.

    Code:
    poly2trellis(?, [? ?])
    I'm pretty new to matlab so help with either one of these options would be greatly appreciated.
    Attached Thumbnails Attached Thumbnails Matlab Convolution coder help-cc_model.jpg   Matlab Convolution coder help-cc_block.jpg  
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Convolution
    Posted in the Differential Geometry Forum
    Replies: 1
    Last Post: June 14th 2011, 05:09 PM
  2. convolution
    Posted in the Differential Geometry Forum
    Replies: 1
    Last Post: November 25th 2010, 04:38 AM
  3. Convolution
    Posted in the Calculus Forum
    Replies: 3
    Last Post: August 19th 2008, 03:13 PM
  4. convolution help
    Posted in the Calculus Forum
    Replies: 7
    Last Post: July 16th 2008, 07:25 AM
  5. Convolution
    Posted in the Advanced Applied Math Forum
    Replies: 4
    Last Post: February 20th 2008, 12:10 PM

Search Tags


/mathhelpforum @mathhelpforum