Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 930 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 930 Bytes

Line Coding or Waveform Coding NRZ

Line Coding Techniques - Unipolar, Polar, Bipolar, Mark and Space - MATLAB code

Important to note this that this is a function file not script, you need to pass parameters to execute this program.

####Step 1. Save "LC_nrz.m" in your current directory of MATLAB ####Step 2. define binary sequence a, e.g. a = [1 0 0 1 1 0 1 0 1 1] ####Step 3. then write [U P B M S]=LC_nrz(a)

###Explaination

'a' is input data sequence

U = Unipolar, P=Polar, B=Bipolar, M=Mark and S=Space

###Example

After saving file in your current directory, execute following

a = [1 0 1 1 0 1 1]
[U P B M S] = LC_nrz(a)

####===========================================

If any doubt, confusion or feedback please contact
PhD Scholar, University of Genova and Queen Mary University of London