Plot SRN and bit error rate of a rectangle pulse MATLAB?

Status
Not open for further replies.

tiennghe27

Newbie level 4
Joined
Mar 5, 2017
Messages
7
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Activity points
59
hello everyone, i need your help
i need plot SRN and bit error rate of 1 rectangle pulse
this is code i write to plot pulse


Code vb.net - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
rng default
Tpulse = 200e-3;
Fs = 1e2;
t = -1:1/Fs:1;
x = rectpuls(t,Tpulse);
y = 0.1*randn(size(x));
s = x + y;
pulseSNR = snr(x,s-x)
figure(1)
plot(t,x)
figure(2)
plot(t,y)
figure(3)
plot(t,s)

 
Last edited by a moderator:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…