Info

此问题已关闭。 请重新打开它进行编辑或回答。

I have declared the variable, but i still get an error message " >> norm_noise_awgn = Noise_awgn​/std_Noise​_awgn; %Normalized signal Undefined function or variable 'Noise_awgn'"

1 次查看(过去 30 天)
%awgn channels
Noise_awgn = randn(1,N);%Noise production
%AvgPower_Noise_awgn=sum(abs(Signal).^2)/N/snr_avg; %average power of noise
AvgPower_Noise_awgn=sum(abs(Signal).^2)/snr_avg;
std_Noise_awgn = sqrt(AvgPower_Noise_awgn);
Noise_awgn = std_Noise_awgn*Noise_awgn;
norm_signal_awgn = Signal/std_Noise_awgn; %Noramlized signal
>> norm_Noise_awgn = Noise_awgn/std_Noise_awgn; %Normalized signal
Undefined function or variable 'Noise_awgn'.
  4 个评论
Idahoise Beckley
Idahoise Beckley 2016-4-14
N=100, snr_avg=power(10,snr_avgdB/10), snr_avgdB=5, and Signal=SignalTone, with SignalTone=5*sin(10*pi*t)=sin(40*pi*t)

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by