MATLAB: How can i simply demodulate a bipolar signal while using BPSK ? i got a modulated signal when i run the following code. how can i demodulate it

error correcting

function [y,n] = add_awgn_noise(Vm,SNR_dB)
L = length (Vm);
% SNR_dB=5;
% Vm=[1 -1 1 -1 1 -1 1 -1];
SNR = 10.^(SNR_dB/10); %SNR to linear scale
Es=1;
N0=SNR/Es; %spectural density
noiseSigma = sqrt(N0/2);%Standard deviation for AWGN Noise when Vm is real
n = noiseSigma.*randn(1,L);%computed noise
y = Vm + n;

Best Answer

#include<stdio.h>
int main()
{ int a,b,c;
a=9;
b=10;
c=a+b;
}
Related Question