Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: AF Cooperative Diversity MATLAB Code
Here is the correct code:
clear all; close all; clc;
N=10^6;%Number of bits
b=rand(1,N)>0.5;%Generate 0s and 1s
Tx=2.*b-1;%NRZ
SNRdB=0:2:30;%SNR in dB
snr = 10.^(0.1 .* SNRdB);
nErr = zeros(1,length(SNRdB));
for ii=1:length(SNRdB)
sd =...
Hi
if I have dual hop cooperative system; S (source), R(Relay), and D (Destination).
and we have H_sr , H_rd for the fading channels between source-relay and relay-destination respectively.
Ps is the Source Power;
Pr is the relay Power;
N is the total number of bits;
G is the AMPLIFICATION...
Hi,
If I have the following Rayleigh fading channel in MatLab:
h=1/sqrt(2).*(randn(s,1)+1i.*randn(s,1))
Note: s=10^6 is the number os symbols;
How to find the (instantaneous) and (average) channel gain?
Thanks
Hi,
in QPSK system:
what are the matlab equations for noise and fading channel?
also;
what is the theoritical equation for calculating BER?
this is because I see several different formula, for example:
1-
N0 = 1/10^(SNR(i)/10);
n = sqrt(N0/2)*(randn(1,length(sig))+1i*randn(1,length(sig)))...
Hi,
what is the difference between EbNo and snr?
which one is commonly use?
what is the equation of awgn noise?
as I know ebno is the enery per bit, so in bpsk ebno and snr are the same right? and snr is signal energy (symbol energy).
but for qpsk we need to divide by 2, and 8psk divid by 3...
Hi,
I don't know if its still correct or not.
clear all; close all; clc;
bits=10;
EbN_dB=0:2:16;
EbNo=10.^(EbN_dB/10);
BER = zeros(length (bits));
L = 3;
for i=1:length(EbN_dB)
% modulation
Ti=(2.*round(randint(1,bits)))-1;
Tq=(2.*round(randint(1,bits)))-1;
x=Ti+1i*Tq;
%generate...
I tried to do it like this:
but it doesn't work.
clear all; close all; clc;
bits=10;
EbN_dB=0:2:16;
EbNo=10.^(EbN_dB/10);
BER = zeros(length (bits));
ht = [0.2 0.9 0.3];
for i=1:length(EbN_dB)
% modulation
Ti=(2.*round(randint(1,bits)))-1...
Dear Friends,
following is the QPSK Tx, Rx matlab code for different channels.
I have these questions:
First:
I don't understand what is mean by (Correct the phase before detection) (y=conj(h).*y;)? why we need it? how it works? in practical what is that mean?
Second:
In case we have...
Hard decision decoding takes a stream of bits say from the 'threshold detector' stage of a receiver, where each bit is considered definitely one or zero. Eg. for binary signaling, received pulses are sampled and the resulting voltages are compared with a single threshold. If a voltage is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.