%Part of Telecommunication simulations course, Spring 2006 %Harri Saarnisaari, CWC

%We simulate uncoded BER of BPSK modulated data as a function of SNR %-in an AWGN channel %-in a Rayleigh fading channel %-in an AWGN channel when direct sequence spreading is used

%and compare results to the theoretical ones.
%We assume coherent receiver and perfect synchronization. ------------------------------------------------%set used SNR values %SNR (Eb/No) values in decibels SNR=[0:2:14]'; %column vector %SNR in linear scale snr=10.^(SNR/10); ------------------------------------------------%we create initial zero vectors for BER BER1=zeros(length(SNR),1); BER2=BER1; BER3=BER1; -----------------------------------------------

%we need a DS-code, we create a random, complex one, length Nc %elements +-1 +- j*1 Nc=32; %note that all parameters are defined as variables %their change afterwards is easy %(no need to change it every place, just once) ds=(2*round(rand(Nc,1))-1)+j*(2*round(rand(Nc,1))1); %ds-code %plot the ds signal plot([real(ds) imag(ds)]), axis([0 Nc -1.1 1.1]) title('real and imaginary parts of DS code'), legend('real','imag'),pause -------------------------------------------------%we use symbol energy normalized to 1 %thus, DS energy is normalized to 1 (it is a pulse waveform) ds=ds/norm(ds); %check this ds_energy=norm(ds)^2,pause (NOTE: normalization is a usual trick) -------------------------------------------------%Monte Carlo loop starts here %some initial values %totally Nmax symbols Nmax=1000; %maximum number of iterations Nerr=100; %minimum number of errors for k=1:length(SNR), %we do MC trials for each SNR for l=1:Nmax, %MC loop

-------------------------------------------------

%DATA %we create data as vectors of length Ns symbols %and thus use MATLAB's vector processing capabilities %in addition to for loops (since too long vectors are problems %to some versions of MATLAB) Ns=100; data=2*round(rand(Ns,1))-1; %data is random and...

...all acronyms on first use.
Numbers ten or less are spelled out: "It consists of three fields", not "3 fields".
Be sure to proofread and carefully check spelling and grammar.
Here are some links to technical report writing guidelines, tips, and example reports.
http://owl.english.purdue.edu/owl/
http://writing.colostate.edu/guides/documents/ce-trpt/
4. Text Sections and Headings
At least one paragraph of text should follow a main heading before a sub-heading occurs.
4.1...

...System Simulation in Matlab/Simulink
Exercise 1: Matlab part
1) Plot the function yx=2∙x-x2+sin(2∙x)∙cos(x)
function problem1 (x)
y=2.*x-x.^2+sin(2.*x).*cos(x)
plot(x,y,'r')
end
2) Print n! from n=2 to 20
function problem2
for k=2:20
n=factorial(k)
end
3) Make a function that calculates RSS for a give vector.
function [rss]=problem3(a)
rss=sqrt(a*a');
end
4) Make a function that check to see if a number is a prime....

...
1. What did you observe in inventory and back order levels when you play the game in uncoordinated and coordinated modes? What are the underlying reasons for the problems associated with uncoordinated decision-making? Based on the results you found in the previous part, list the potential benefits of coordination. (max 0.75 page)
2. What are the steps companies can take in order to reduce the problems associated with uncoordinated decision-making? Discuss also the...

...Overall Structure of Java Simulation of a Single-Server Queue
Main() program
Start simulation.
call Initialization()
Initialize the model.
main progam
Remove imminent event from FutureEventList.
Advance simulation time to event time.
main program
Call event routine based on event type.
call ProcessArrival()
Execute arrival event.
call ProcessDeparture()
Execute departure event.
Simulation
over
?
call...

...SIMULATION
• WHAT is Simulation ?
• WHY is Simulation required ?
• HOW is Simulation applied ?
• WHERE is Simulation used ?
DEFINITION
• Simulation is a representation of reality through the use of model or
other device, which will react in the same manner as reality under a
given set of conditions.
• Simulation is the use of system model that has the designed
characteristic of...

...components
– MATLAB – Revision, Numerical Integration, Root
Finding
• Dr Mike Clee
• Lectures – Weeks 2-4, Labs – Weeks 3-5
• 50% 1 assignment
– CAD – Solidworks
• Dr Chengyuan Wang
• Lectures Weeks 5-6, Labs – Weeks 6-12
• 50% – 1 assignments
Semester 1, 2014-2015
General Information
• MATLAB lab slots
– There will be demonstrators in each lab to help with MATLAB
worksheets
– Each student has the opportunity to complete the assignment during
the...

...MATLAB BEGINNER’S GUIDE
0
About MATLABMATLAB is an interactive software which has been used recently in various areas of engineering and scientific applications. It is not a computer language in the normal sense but it does most of the work of a computer language. Writing a computer code is not a straightforward job, typically boring and time consuming for beginners. One attractive aspect of MATLAB is that it is relatively easy...

4159 Words |
16 Pages

Share this Document

{"hostname":"studymode.com","essaysImgCdnUrl":"\/\/images-study.netdna-ssl.com\/pi\/","useDefaultThumbs":true,"defaultThumbImgs":["\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_1.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_2.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_3.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_4.png","\/\/stm-study.netdna-ssl.com\/stm\/images\/placeholders\/default_paper_5.png"],"thumb_default_size":"160x220","thumb_ac_size":"80x110","isPayOrJoin":false,"essayUpload":false,"site_id":1,"autoComplete":false,"isPremiumCountry":false,"userCountryCode":"US","logPixelPath":"\/\/www.smhpix.com\/pixel.gif","tracking_url":"\/\/www.smhpix.com\/pixel.gif","cookies":{"unlimitedBanner":"off"},"essay":{"essayId":37333852,"categoryName":"Literature","categoryParentId":null,"currentPage":1,"format":"text","pageMeta":{"text":{"startPage":1,"endPage":4,"pageRange":"1-4","totalPages":4}},"access":"premium","title":"Simulation Example with Matlab","additionalIds":[8,3,19,219,5],"additional":["Engineering","Business \u0026 Economy","Natural Sciences","Natural Sciences\/Mathematics","Computer Science"],"loadedPages":{"html":[],"text":[1,2,3,4]}},"user":null,"canonicalUrl":"http:\/\/www.studymode.com\/course-notes\/Simulation-Example-With-Matlab-1518683.html","pagesPerLoad":50,"userType":"member_guest","ct":10,"ndocs":"1,500,000","pdocs":"6,000","cc":"10_PERCENT_1MO_AND_6MO","signUpUrl":"https:\/\/www.studymode.com\/signup\/","joinUrl":"https:\/\/www.studymode.com\/join","payPlanUrl":"\/checkout\/pay","upgradeUrl":"\/checkout\/upgrade","freeTrialUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fcheckout%2Fpay%2Ffree-trial\u0026bypassPaymentPage=1","showModal":"get-access","showModalUrl":"https:\/\/www.studymode.com\/signup\/?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fjoin","joinFreeUrl":"\/essays\/?newuser=1","siteId":1,"facebook":{"clientId":"306058689489023","version":"v2.8","language":"en_US"},"analytics":{"googleId":"UA-32718321-1"}}