Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top