Matlab Help QPSK with ZeroForcing plz

edited August 2010 in Science & Tech
Heia....

I Need Help in Matlab Command with QPSK for ZeroForcing and ask about something if i have

N=2;

Symbols = [ 1+j 1-j -1+j -1-j ]';

1- How to make X choose a 2 random from Symbols ?

2- How to calculate the closest consellation point for each decoded received Symbol ?

3- How to move each calculated symbol to the nearest consellation point ?

I need Matlab commands for this 3 questions

thanks alot....

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited August 2010
    index = ceil(rand(1,2)*4);
    symbols(index)
    
    will give you two random symbols
    dist = Symbols - rx_symbol;
    [min_dist, index] = min(dist)
    
    will find you the closest symbol and the distance to it.
  • edited August 2010
    thanks alot mate and can u tell me what is what is rx_Symbols is ?? and when i run the programe i got error said undefined function or varable 'rx_symbols'

    can u check if this code is right or wrong thanks alot


    N = 2;

    Symbols=[1+j 1-j -1+j -1-j];

    H = randn(N,N) + j*randn(N,N);

    X= ceil (rand (1,2)*4);
    Symbols(x)

    % what is the closest constellation point for each decoded received symbol
    dist = Symbols - rx_symbol;

    % move each calculated symbol to nearest constellantion point
    [min_dist, index] = min(dist)
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited August 2010
    You need to define rx_symbol yourself as the decoded received symbol you mentioned in (2). Remember that MATLAB is case-sensitive. You should probably also ask your professor for assistance.
Sign In or Register to comment.