EE 348: Lab 1 Matlab Tutorial, Spring 2010
1
Introduction
Matlab will be used extensively in the labs for this course. You may read Appendix B: Programming in MATLAB
in the course textbook for an overview. This lab presents some basic Matlab commands and
EE348-02
Lab04-Sampling and Aliasing
02/17/2015
2.1: Lab exercise-Sampling
x ( t )=cos (50 t )+2 cos ( 100 t ) +5 cos ( 250 t )
1.
The maximum frequency is 125HZ and its period is 0.008s.
2.
function [t,x]=periodlab4(T)
j=1;
t=0;
x=0;
for i=0:0.0008:4*T
t
EE348-02
Lab03-Fourier Analysis and Approximation
02/13/2015
2.1
Period Generator:
function [out1,out2]=pergen(T)
b=T/4;%period interval
x=[];%initial
t=0:(T/400):(T-T/400);%creat t
for i=1:400
if (t(i)>= 0 & t(i) < b) | (t(i)>= (3*b) & t(i) <= (4*b)
x(i)
EE 348 Practice Problems, Exam 1, Spring 2010:
Solutions
1. Fourier Series Spectrum and Representation
Consider the sequence of Fourier series coecients
ak = exp(j/3) [k + 2] + j [k + 1] j [k 1] + exp(j/3) [k 2].
The fundamental frequency f0 = 10 Hz.
a) D
EE 348: Homework Assignment #5, Spring 2010
This homework assignment #5 is due on Tuesday, March 23, 2007, after spring break.
1. DTFS:
Consider a discrete periodic sequence x[n] = 2 + 3 cos(2n/3) + cos(n/4).
(a) What is the period N of x[n]?
(b) At what
EE 348 Practice Problems for Exam 1, Spring 2010
1. Fourier Series Spectrum and Representation
Consider the sequence of Fourier series coecients
ak = exp(j/3) [k + 2] + j [k + 1] j [k 1] + exp(j/3) [k 2].
The fundamental frequency f0 = 10 Hz.
a) Draw the
EE 348 Practice Problems for Exam 2, Spring 2010
1. Discrete-Time Fourier Series
Answer the following questions about the sampled signal x[n] = cos(n/2).
1.a.
What is the period N of x[n]?
Solution:
The condition for periodicity is that x[n + N ] = x[n],
EE 348 Practice Problems for Exam 2, Spring 2010
1. Discrete-Time Fourier Series
Answer the following questions about the sampled signal x[n] = cos(n/2).
1.a.
What is the period N of x[n]?
1.b.
What are the discrete-time Fourier series coecients X [k ]?
H
EE 348: Homework 6 Solutions, Spring 2010
Z-Transforms
Homework assignment #6 is due at the beginning of class Tuesday, April 13, 2010.
1. Find the z-transform X (z ), its corresponding frequency response X ( ), and the pole-zero diagram
for each input x[
EE 348: Homework Assignment #5, Spring 2010
This homework assignment #5 is due on Thursday, March 25, 2010, after spring break.
1. DTFS:
Consider a discrete periodic sequence x[n] = 2 + 3 cos(2n/3) + cos(n/4).
(a) What is the period N of x[n]?
Solution:
W
EE 348: Homework 6, Spring 2010
Z-Transforms
Homework assignment #6 is due at the beginning of class Tuesday, April 13, 2010.
1. Find the z-transform X(z), its corresponding frequency response X( ), and the pole-zero diagram
for each input x[n]. Plot the
EE 348: Lab 2, Spring 2010
MATLAB and Linear Algebra
1
Introduction
This lab is a one-week lab. Your lab report is due at the beginning of lab Friday, Feb 5. Labs are to be done
individually, although you may consult together in groups in regards to the l
EE 348: Lab 3, Spring 2010
Fourier Series Analysis and Approximation
1
Introduction
Lab 3 examines writing a function to determine the Fourier series coecients ak for a given periodic
function x(t). These Fourier series coecients will be used to generate
EE348-02
Lab06-Casacaded LTI Systems
03/27/2015
3.1: Lab Exercise-Cascaded LTI System
1.
h 1 [ n ] =0.25 [ n ] 0.25 [n2]
2. h1 function:
function a=xfunc(k)
b2=[1 2 1 -1 1];
if (length(b2)-1-k)>=2 & (length(b2)-1-k)<=6
a=b2(k+3);
else a=0;
end
h2 function