Plotting AWGN in baseband binary transmission
1 次查看(过去 30 天)
显示 更早的评论
How do I plot this?
S0(t)= sqrt(2*E/T) sin(pi*t/T)
S1(t)= sqrt(2*E/T) sin(2*pi*t/T)
where T is the period and E is normalized.
Can someone teach me how to plot this because I dont know how to plot E and T.
0 个评论
回答(2 个)
UJJWAL
2011-9-30
Hi Phoon,
Your question is not clear. In the equation you have mentioned there is no mention of AWGN. It is not clear what you want to plot. The expression you have mentioned , it seems that it is of a signal of Symbol period 'T' for binary trnasmission. Multiplication by Sqrt[2*E/T) is done so as to ensure that the energy of the signal is 1. This is also a kind of normalization. For transmitting 1 and 0 usually the amplitudes are inverted. So Amplitude will be like Sqrt[2*E/T) for 1 and negetive of that for 0. So I dont know what you want to plot. I am below mentioning a plot for the BPSK transmission of a sequence of bits
x = [0,1,0,0,0,1,1,1]; % Bits to be transmitted
T= 1 ; % Symbol Period
len = length(0:0.001:1);
p=1;
for i = 1:length(x)
s(1,p:p+len-1) = (-1)^(1+x(i)) * sqrt(2*0.1/1) * sin(2*pi*(0:0.001:1)/T);
p=p+len;
end
t= 0:0.001:0.001*(p-2);
plot(t,s);
xlabel('Time\rightarrow','fontsize',18);
ylabel('s(t)\rightarrow','fontsize',18);
title('Baseband Signal','fontsize',20);
grid on;
For details clarify your question and reply back. Hope this helps
HAPPY TO HELP
UJJWAL
0 个评论
Phoon
2011-10-1
1 个评论
Walter Roberson
2011-10-2
You don't even have a pi in the above code, let alone a sin() or sqrt(), and you do not have any comments such as "I want to do S0 here!" such that we could get an idea of how you want S0 and S1 to relate to the rest of your program.
At present it does not appear that this program has anything to do with the question you asked ?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Propagation and Channel Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!