from
Additive Noise Channel
by Ashwini Patankar
This function is the matlab implementation of Additive Noise Channel
|
| additivenoise(sig_ip)
|
%This function is the matlab implimantation of additive noise channel
% s(t) input signal to channel (=sig_ip)
%n(t)additive random noise process added by channel (=noise_mat)
%a(t) attenutation factor , here it is taken as random(=att_fact)
%out put signal r(t) = a .* s(t) + n(t)
%Author: Ashwini Patankar
%Email Id: ashwinispatankar@gmail.com
%Blog: www.wirelesscafe.wordpress.com
%Details about channels can be found on the blog
function [sig_op] = additivenoise(sig_ip)
att_fact = rand();
for count = 1:1:length(sig_ip)
noise_mat(1,count) = rand();
end
sig_op = att_fact .* sig_ip + noise_mat;
|
|
Contact us at files@mathworks.com