Can you share the code and requirement data file, so that members can try on it?
AWGN in an input array
3 次查看(过去 30 天)
显示 更早的评论
I am writing a code, where i have two different arrays coming from the transmitter. One array is the accurate result of some computation while other is the estimated one. There is no much difference between these two. I want to add white guassian noise in both arrays, separately. I have generated noise as
AWGN_Channel = comm.AWGNChannel('NoiseMethod','Signal to noise ratio (SNR)','SNR',SNR(1,index));
Where index in this case is, SNR's value ranging from -15 to 15. My question is, for every iteration, let's say for index=1, I don't have much difference between my input signals. These are
Accurate_Sig=[-0.8833 -1.1505 -1.3330 -1.4561 -1.5539];
Estimated_Sig=[-0.8761 -1.1413 -1.3263 -1.4478 -1.5417];
My Question is, if i add same noise level to both the arrays, these should give approximately same answer. Right? I have used commands as
acc = step(AWGN_Channel,Accurate_Sig);
estimate = step(AWGN_Channel,Estimated_Sig);
but MATLAB gives following
acc=[ 37.8396 -27.3586 11.7214 93.9220 -44.9241];
estimate=[ -52.4087 -15.5714 23.9621 47.0520 -79.1098];
Is the above approach correct? Shouldn't these acc and estimate arrays generate approximately similar answers?I am new to all this so i guess, either i couldn't understand this awgnchan concept properly or there is some mistake. I'll appreciate any help.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!