Question
Project Write a MATLAB function who takes as input parameters: ibs: A vector which represents input bit stream tlc: Type of line code: A character
Project Write a MATLAB function who takes as input parameters:
ibs: A vector which represents input bit stream
tlc: Type of line code: A character variable which can take following values: NRZ-L (for NRZ-LEVEL),NRZ-M (for NRZ-MARK), NRZ-S (for NRZ-SPACE), __AMI (for BIPOLAR (AMI)), RZ, bi_RZ (for BIPOLAR RZ), manch (for MANCHESTER (BIPHASE)), and d_man (for DIFF. MANCHESTER)
Rb: A scalar which shows input bit rate
Also, write a function to plot the generated waveform.
Procedure
One can generate the functions
lc_gen(ibs,tlc,Rb) and lc_plot(x,Rb) with parameters as defined above. As an example:
b=[0 0 1 1 1 0 0 1 1 1 1 0];
x=lc_gen(b,__AMI,2);
lc_plot(x,2)
will generate following waveform (note that each second contains two pulses for Rb = 2):
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started