Info

This question is closed. Reopen it to edit or answer.

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 view (last 30 days)
%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 Comments
Idahoise Beckley
Idahoise Beckley on 14 Apr 2016
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)

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!