Using Matlab Based Laboratories To Demonstrate Wireless Communications Systems Principles PDF
Using Matlab Based Laboratories To Demonstrate Wireless Communications Systems Principles PDF
Kathleen A. Kramer
University of San Diego
Abstract
Introduction
The study of wireless and other advanced communications systems topics at the undergraduate
level has developed at some universities, in response to the increased interest resulting from the
impressive research and development in such technology over the past several years. Work with
digital and wireless communication systems often involves the application of mathematical
principles that are themselves complex and or must be applied to a very large numbers of
variables. As a result, both industry professionals and academic researchers often use computer
simulation, including mathematical simulation programs, such as MATLAB or Mathcad, in their
study of these advanced topics.
The exercises are appropriate for use as student laboratory exercises, as a supplement to
hardware laboratory exercises, or as outside assignments for courses that do not have a
laboratory component. The paper describes the simulation exercises, and reports on the use of
these exercises in a university setting to augment a course in wireless communication system
principles.
features broad-based course requirements and small class sizes. USD Engineering Programs
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education
Session 2793
were recently ranked 15th nationally amongst non-PhD granting engineering programs by U.S.
News and World Report.
The extensive requirements and limited size of the program put severe limits on engineering
elective offerings. In an effort to meet student demand and to provide students with knowledge
relevant to local industry, a special topics course, Wireless and Digital Communications was
offered in Fall 1999, only the second of such special elective offering for the program. The
course was structured with three hours of lecture and a three-hour laboratory each week.
The primary prerequisite for the course was a senior-level required course in communications
systems. The prerequisite course has itself several prerequisites including upper-division
mathematics courses, a course in signal and systems analysis, and two courses in electronics.
Despite the rather extensive course background of the students, the theoretical nature of the
communication systems topics and the complexity and cost of appropriate hardware systems
motivated the development of simulation exercises.
Simulation Exercises
Three different simulation exercises described here were written to be performed using
MATLAB, although other mathematical computation packages such as Mathcad would also
provide a suitable platform.
The first of the exercises builds upon a previous laboratory where students had built a simple
PN-code generator using 7400-series ICs and then developed MATLAB modules allowing them
to generate an arbitrary PN-code. In this exercise, the students again generate their own pseudo-
random codes and then measure auto-correlations and cross-correlations using MATLAB code
that they write. Listings for modules are given in Figure 1. The student handout gives students
some basic functions, then students write more advanced simulations.
The second exercise has students perform an analysis of the relative trade-offs involved in
capacity and trunking efficiency for a communications system, such as a cellular telephone
system, where blocked calls are either cleared or queued. Listings for modules are given in
Figure 2. In this exercise, students start with some examples the demonstrate use of some of the
plotting features of MATLAB and a function to help avoid some difficulties that could arise if
computations are not performed in an efficient order.
Page 6.1110.2
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education
Session 2793
order = length(shiftreg);
feedbck=0;
for n = 1:order
feedbck = xor(feedbck,and(shiftreg(n),poly(n+1)));
end
for i = 1:lengthseq
bitseq(i) = sr(n) % new bit of sequence is last bit of register
sr = codeout(p,sr)
end
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education
Session 2793
function fx = factdiv(m, n)
% this function implements m!/n!, where m>=n
% m!/n! = m * (m-1) * ...*(n+1)
fx = 1;
for i=(n+1):m
fx = fx*i;
end
figure % plot is semilog GOS vs. U with axes and labels specified
semilogy(U,GOS,’-b’,U,GOS,’or’)
xlabel(’Number of Users’);
ylabel(’Call Blocking Probability’);
title(’GOS (Call Blocking Prob) vs. Number of Users’);
axis([1 100*C 0.00001 1])
sum = 0;
for k = 0:C
sum = sum+ (A^k)*factdiv(C,k);
end
prob = A^C/sum;
temp = 0;
for k = 0:(C-1)
temp = temp+ (A^k)*factdiv(C,k);
end %summation times C!
temp = temp*(1-A/C);
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education
Session 2793
The third laboratory first has the students observe signals experiencing Rayleigh fading by using
antennas, a function generator, and a portable oscilloscope and to observe a multipath signal in
the time domain. Using MATLAB, students then calculate the effects of fading on the received
data under varying conditions that they can control in simulation.
rate = ((2*pi)^0.5)*fm*roh*exp(-roh*roh);
time = (exp(roh*roh)-1)/(roh*fm*((2*pi)^0.5))
v1=0;
v2 =1:10:120
c=3*10^8;
f=900*10^6; %set modulation freq
lambda = c/f;
fm = v2/lambda; % find max doppler freq
fadetime = avgfade(roh,fm);
bitsperfade=ceil(fadetime*bitrate)
Nr = lcr(roh, fm);
errpersec = Nr*bitsperfade;
if (errpersec > bitrate)
errpersec=bitrate; %can’t have more errors than bits
end
eprob = errpersec/bitrate
Page 6.1110.5
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education
Session 2793
Conclusion
The three exercises were developed to enhance student laboratory experiences within the senior-
level elective course in wireless communications systems at USD in the Fall 1999 semester.
Students evaluated their experiences very positively. More than half of those students who
completed the course went on to accept jobs doing work related to course topics or to graduate
studies. The course will be repeated again in Fall 2001 and the instructor is working with
individuals from local industry to continue to develop relevant laboratories.
Acknowledgements
The author would like to acknowledge the contributions of Chuck Pateros and Mark Miller of
ViaSat, Inc., Scott Denton of Applied Microcircuits Corporation, and Ricardo Valerdi of
Motorola for their contributions to the laboratories developed for the course. She would also like
to thank Professor F. Cassara of Polytechnic University for the valuable contributions of the
Faculty Enhancement Workshop on Wireless Communications that he led in June 1999.
References
1. Kathleen Kramer and Thomas F. Schubert, Jr. , “Demonstrating Complex Communication Systems
Principles Using Electronic Courseware and a Simple Computer Math Package”, Proceedings of the 1998
American Society of Engineering Educators Conference, June 1998.
2. Theodore S. Rappaport, Wireless communications: Principles and Practices, Prentice-Hall, Englewood, NJ,
1996
3. materials from "Wireless Communications"[NSF-sponsored Faculty Enhancement Workshop directed by
Frank Cassara], Polytechnic University, Farmingdale, New York, June 1999
4. Thomas F. Schubert, Jr., "The Use of a Simple Computer Math Package to Demonstrate Complex
Communication Systems Principles ", Frontiers in Education Conference Proceedings, November 1994.
KATHLEEN A. KRAMER is an Associate Professor of Electrical Engineering at the University of San Diego. Her
teaching and research interests are in the areas of digital systems and communications systems. She received her MS
and Ph.D. in Electrical Engineering from the California Institute of Technology, and her BS in Electrical
Engineering (with a second major in Physics) from Loyola Marymount University. She is a consulting member of
technical staff at ViaSat, Inc. in Carlsbad, CA, where she does research on topics in communication systems and
signal processing.
Page 6.1110.6
Proceedings of the 2001 American Society for Engineering Education Annual conference & Exposition
Copyright 2001, American Society for Engineering Education