EE 4365 Introduction to Wireless Communications MATLAB® Demonstration—Part 1 Jiawei Liu (T.A.)

Slides:



Advertisements
Similar presentations
Introduction to MATLAB The language of Technical Computing.
Advertisements

Introduction to Matlab
Random Variables ECE460 Spring, 2012.
Time plan and deadlines Week Introduction lectures - Start lab: Intro to Simulink. (About 20 hours of work) - Electronic quizzes in webct - Choose.
Final Project Part II MATLAB Session ES 156 Signals and Systems 2007 SEAS Prepared by Frank Tompkins.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Matlab Intro. Outline Matlab introduction Matlab elements Types Variables Matrices.
Lecture II-2: Probability Review
64-QAM Communications System Design and Characterization Project #1 EE283
Prof. SankarReview of Random Process1 Probability Sample Space (S) –Collection of all possible outcomes of a random experiment Sample Point –Each outcome.
EE513 Audio Signals and Systems Statistical Pattern Classification Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
MATLAB INTRO CONTROL LAB1  The Environment  The command prompt Getting Help : e.g help sin, lookfor cos Variables Vectors, Matrices, and Linear Algebra.
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
1 If we can reduce our desire, then all worries that bother us will disappear.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
MATLAB
Numerical Computation Lecture 2: Introduction to Matlab Programming United International College.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
Time plan and deadlines Week Introduction lectures - Start lab: Intro to Simulink. (About 20 hours of work) - Electronic quizzes in webct - Choose.
Math b (Discrete) Random Variables, Binomial Distribution.
Lecture V Probability theory. Lecture questions Classical definition of probability Frequency probability Discrete variable and probability distribution.
Introduction to Digital Signals
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Sums of Random Variables and Long-Term Averages Sums of R.V. ‘s S n = X 1 + X X n of course.
Random Variables By: 1.
Introduction to Matlab. Outline:  What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators.
Introduction to Matlab
Linear Algebra Review.
National Mathematics Day
Signals in Matlab Matlab as a name stands for Matrix Laboratory.
L – Modeling and Simulating Social Systems with MATLAB
Random Variable.
64-QAM Communications System Design and Characterization
Outline Introduction Signal, random variable, random process and spectra Analog modulation Analog to digital conversion Digital transmission through baseband.
EGR 115 Introduction to Computing for Engineers
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Introduction to Matlab
Matlab Workshop 9/22/2018.
AP Statistics: Chapter 7
StatLab Matlab Workshop
Digital Image Processing using MATLAB
Discrete event simulation discrete time systems
MATH 493 Introduction to MATLAB
Use of Mathematics using Technology (Maltlab)
StatLab Workshop: Intro to Matlab for Data Analysis and Statistical Modeling 11/29/2018.
Net 222: Communications and networks fundamentals (Practical Part)
Digital Image Processing
Random Variable.
Communication and Coding Theory Lab(CS491)
EE513 Audio Signals and Systems
Introduction to Matlab
Matlab Intro.
Discrete Variables Classes
CSE 307 Basics of Image Processing
DT001A, Simulation of communication systems, 7.5 ECTS
EE 6332, Spring, 2017 Wireless Telecommunication
Matlab Basic Dr. Imtiaz Hussain
Simulation And Modeling
Introduction to Matlab
Matlab Training Session 2: Matrix Operations and Relational Operators
Chapter 6 Random Processes
Bernoulli Trials Two Possible Outcomes Trials are independent.
Chapter 5: Discrete Probability Distributions
EECS Introduction to Computing for the Physical Sciences
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Matlab Intro.
Continuous Random Variables: Basics
Presentation transcript:

EE 4365 Introduction to Wireless Communications MATLAB® Demonstration—Part 1 Jiawei Liu (T.A.)

Lecture Outline Introduction to MATLAB® Review of Probability Theory Common pseudo random sequence generators in MATLAB® Example: Generating Binary Pseudo Random Sequences

Introduction to MATLAB® Widely used high-level programming language in both academia and industry Numerous toolboxes for many applications such as signal processing, communications, biology and finance The data structure mainly built on arrays or vectors Brilliant for visualization

Why MATLAB in EE 4365 Communications systems can be easily modeled through MATLAB and Simulink MATLAB has a large library to facilitate signal processing, including powerful tools to visualize signals MATLAB is easy to learn and great for pedagogical purpose MATLAB will be continuously used throughout this course to illustrate key ideas and concepts

How To Get MATALB®

Navigate through MATLAB The user interface Command Window  Semicolon, ctrl+c Editor Getting help MATLAB’s powerful built-in help system Useful commands: doc, help function name (e.g., help plot), lookfor keyword (e.g., lookfor gaussian) MATLAB Central _mlc _mlc

Navigate through MATLAB (Continued) Our goal is to – Generate signals that transmitted in communication systems – Simulate signal processing with these signals like real communications systems Living in the digital world – Any signals in MATLAB must be digitized – Signals are represented as a sequence of numbers or samples Working with vectors and matrices – Vectors are simply sequence of numbers

How to Generate Vectors & Signals in MATLAB Colon operator : [ ] operator :

How to Generate Vectors & Signals in MATLAB (Continued) ones(n) – Create array of ones Zeros(n) – Create array of all zeros d=size(X) - Return the dimension of array X Y=sign (X) – Return 1 if x is greater than 0; 0 if x equals 0; -1 if x is less than 0

Illustration: Amplitude Modulation

A Brief Review of Probability Theory

Conditional Probability

Random Variables A random variable assigns numbers to outcomes in the sample space of an experiment Discrete or Continuous

Continuous RVs

Common PDFs

Common PDFs (Continued)

Discrete Random Variables

Discrete Random Variables (Continued)

Expectation and Variance of R.V.s

Random Sequence Generation

Random Sequence Generation (Continued) randi – create uniformly distributed pseudorandom integers randi([a,b],n,1) – generate an n-by-1 column vector of uniformly distributed random integers from the sample interval [-5,5] binornd(N,p) – generate binomial random numbers after N trials with the probability of success for each trial, p

Random Sequence Generation (Continued) y = randsample(n,k,true,w) – generate weighted random numbers with weight vector w. p=randperm(n) – returns random permutation of the integers from [1,n] random – general random number generation function m.html m.html

Illustration: Generate binary pseudo random sequences Generate equally likely independent binary bit stream of bit -1 and +1 with length N=100

Illustration: Generate binary pseudo random sequences (Continued) Generate a N=100 bits long independent binary bit stream of -1 or +1 with probability of bit +1 =3/4

Recommended Reading How to Generate Signals – cialcharacters.htmlSpecial Characters cialcharacters.html Array vs. Matrix Operations – _prog/array-vs-matrix-operations.html _prog/array-vs-matrix-operations.html MATLAB Tutorial – Documents of each function introduced