f



Question about ofdm

Dear all
 i am student in thesis in communication engineering department and the thesis in 4pam coded and uncoded this program  4 pam uncoded Ralyigh fading the code not run and the matlab not runs and gets this message”Error using ==> modulate at 51
Not enough input arguments.”what can i do in this problem to program run and i need for you if any thing mistakes in the program my email:engkareem.aast@hotmail.com
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
nFFT = 64; % fft size
nDSC = 52; % number of data subcarriers
nBitPerSym = 52; % number of bits per OFDM symbol (same as the number of subcarriers for BPSK)
nSym = 10^4; % number of symbols
EbN0dB = [0:10]; % bit to noise ratio
EsN0dB = EbN0dB + 10*log10(nDSC/nFFT) + 10*log10(64/80); % converting to symbol to noise ratio
% ht=modem.pammod(4);
% hr=modem.pamdemod(4);
M=4; % Constellation order
ht=modem.pammod(‘M’, M);
hr=modem.pamdemod(‘M’, M);
for ii = 1:length(EbN0dB)
% Transmitter
ipBit = randi([0 M-1],1,nBitPerSym*nSym) ; % random 1?s and 0?s
% % % ipMod = 2*ipBit-1; % BPSK modulation 0 –> -1, 1 –> +1
ipMod = modulate(ht,ipBit);
ipMod = reshape(ipMod,nBitPerSym,nSym).’; % grouping into multiple symbolsa
% Assigning modulated symbols to subcarriers from [-26 to -1, +1 to +26]
xF = [zeros(nSym,6) ipMod(:,[1:nBitPerSym/2]) zeros(nSym,1) ipMod(:,[nBitPerSym/2+1:nBitPerSym]) zeros(nSym,5)] ;
% Taking FFT, the term (nFFT/sqrt(nDSC)) is for normalizing the power of transmit symbol to 1
xt = (nFFT/sqrt(nDSC))*ifft(fftshift(xF.’)).’;
% Appending cylic prefix
xt = [xt(:,[49:64]) xt];
% multipath channel
nTap = 10;
ht = 1/sqrt(2)*1/sqrt(nTap)*(randn(nSym,nTap) + j*randn(nSym,nTap));
% computing and storing the frequency response of the channel, for use at recevier
hF = fftshift(fft(ht,64,2));
% convolution of each symbol with the random channel
for jj = 1:nSym
xht(jj,:) = conv(ht(jj,:),xt(jj,:));
end
xt = xht;
% Concatenating multiple symbols to form a long vector
xt = reshape(xt.’,1,nSym*(80+nTap-1));
% Gaussian noise of unit variance, 0 mean
nt = 1/sqrt(2)*[randn(1,nSym*(80+nTap-1)) + j*randn(1,nSym*(80+nTap-1))];
% Adding noise, the term sqrt(80/64) is to account for the wasted energy due to cyclic prefix
yt = sqrt(80/64)*xt + 10^(-EsN0dB(ii)/20)*nt;
% Receiver
yt = reshape(yt.’,80+nTap-1,nSym).’; % formatting the received vector into symbols
yt = yt(:,[17:80]); % removing cyclic prefix
% converting to frequency domain
yF = (sqrt(nDSC)/nFFT)*fftshift(fft(yt.’)).’;
% equalization by the known channel frequency response
yF = yF./hF;
% extracting the required data subcarriers
yMod = yF(:,[6+[1:nBitPerSym/2] 7+[nBitPerSym/2+1:nBitPerSym] ]);
ipBitHat=demodulate(hr,yMod);
% converting modulated values into bits
%ipBitHat = (ipModHat+1)/2;
ipBitHat = reshape(ipBitHat.’,nBitPerSym*nSym,1).’;
% counting the errors
nErr(ii) = size(find(ipBitHat – ipBit),2);
end
simBer = nErr/(nSym*nBitPerSym);
theoryBer = (1/2)*erfc(sqrt(10.^(EbN0dB/10)));
close all; figure
semilogy(EbN0dB,theoryBer,’bs-’,'LineWidth’,2);
hold on
semilogy(EbN0dB,simBer,’mx-’,'LineWidth’,2);
axis([0 10 10^-5 1])
grid on
legend(‘theory’, ‘simulation’);
xlabel(‘Eb/No, dB’)
ylabel(‘Bit Error Rate’)
title(‘Bit error probability curve for 4pam using OFDM’)
0
8/29/2012 11:36:08 PM
comp.soft-sys.matlab 211266 articles. 15 followers. lunamoonmoon (258) is leader. Post Follow

0 Replies
298 Views

Similar Articles

[PageSpeed] 51

Reply:

Similar Artilces:

DVB-H OFDM matlab Question
Hello I am working on simulating DVB-H 4k mode according to ETSI standard According to the standard i am populating 3024 data carriers with QPSK. am trying to validate the simulation by measuring the BER before Vit&R decoding and comparing to standard Eb/No qpsk curves. The problem is tha I am using the MATLAB AWGN function with SNR from 0to12dB and the fla 'measured'. I would like to know how to translate this to Eb/No so I ca compare to the known QPSK theoretical curves, or if there is a better wa to validate the simulation. Thank you. Idan ...

com.sys and usbser.sys question
I got a question, for those knowing more about that matter than myself, which shouldn't be hard ;-) Temporarily having 2 phone lines at my disposal, I wanted to put my old modem back to use as a phone number dialer, using the BonusPack PIM Phonebook application. But I had quite some trouble to get my COM1 port to work at all with any comm application. It finally turned out, that COM.SYS has to be loaded before USBSER.SYS, since otherwise USBSER.SYS is hijacking COM1 unnoticed. Now, in the order shown below, it assigns itself to COM6 (if not remed out), but COM1 still d...

How does matlab work in this issue ? a matlab principle question
Hello everyone I have an ODE solver computing the temperature every month during a year this script will do the job for j=1:12 [t,T]= ode45(@monthly_solver,tspan,Tic,[],monthly_heat(j),h2(j),); end where Tic is the intial temperature and J loops represents the months Now the question is about matlab principle and how does it work with the initial condition? i mean as the last temperature of the 1st month is the begining temperture of the 2nd month and the last temp. of the 2nd month is the begining temp. of the 3rd month and so on. Do i need to write a command to do ...

questions about OFDM
Hello all, I've been following the OFDM demodulation discussions on this NG for some time. However, there are a couple of things that I don't quite understand. Most of the posts I've seen have been regarding baseband demodulation of OFDM signals. My question is, how do you demodulate when the signal isn't at baseband, i.e. its still on an RF carrier?. Can you demodulate the signal directly or would you have to shift down in frequency before you could demodulate?. For arguments sake, lets say we have an 32 carrier OFDM signal with 10Khz tone separation centered on 1Mhz and that signal has been sampled at say, 10M. Could I just shift the carrier frequency down by 1Mhz (plus half the bandwidth of the signal), filter, resample and apply a 32 point FFT to demodulate? Next question is, assuming I end up shifting the carrier down in frequency, what would be the easiest way to do this?. Is there a way to just shift the carrier without mixing it with another signal? Thanks in advance Bill It may be possible to demodulate without basebanding but it would require an unweildy FFT size. In any case it's just not practical. Typically, the first step is to baseband which is a shift in frequency sometimes combined with a hilbert transform to create an analytic signal. One typical wants to shift the center frequency to zero. A shift in the frequency / time domain is equal to a multiplication by a complex exponential in the reciprocal domain. By multiplying the ...

questions on matlab
Dear Sir My name is Tusajigwe, student from Brighton University taking MSC in Digital Electronics and Communication. Now am doing a research on Wireless Communication which concern with email alert to GSM users on their cell pohones,what i want from this project is to make GSM users to receive email alert when they have got new mail and this service will be offered by GSM operator ways of achieving 1)To establish link between ISP and SMS centre,because e-mail alert will be in the form of text message and ISP is the one who knows if someone has mail after see it ISP forward to SMS centre by us...

Matlab how to question?
I am a student of engineer, and I am in a course that's call numeric calculus. I have to do a shore an I'm stuck in a question. I have to minimize the error of an aproximation and make a matlab program that do that, just receiving a few points in two dimensions. More clearly, I will receive a table with 20 points, like (x1,y1)(x2,y2)...(x20,y20), and with the method "ortogonal square minimus" (Something like that) I have to minimize the error of an aproximate polynomial. Some clues? I would apreciate a lot any help anyone may do. Thanks. jim In article <4025405.1180395885...

question in matlab
I have been plotted a 3D counter plot via the commands [C,h]=contour3(w,p,green3,10); t = clabel(C,h,'labelspacing',72) get(t(1)) with run the comment in matlab recived this output: Annotation = [ (1 by 1) hg.Annotation array] BackgroundColor = none Color = [0 0 0] DisplayName = EdgeColor = none Editing = off Extent = [0 0 0 0] FontAngle = normal FontName = Helvetica FontSize = [10] FontUnits = points FontWeight = normal HorizontalAlignment = center LineStyle = - LineWidth = [0.5] Margin = [2] Position = [-0.661507 0.649385 -0.01794] Rotation = [290.824] String = -0...

matlab OFDM
Hi There, Anyone has a OFDM in matlab .m files that could share with me? I need to make some simulations on it and I have been finding lot o problems in building a OFDM in matlab. If someone could send it to me at jpirama@yahoo.com.br would be very nice. If someone has some book that could send me it also would be great. Thanks! Juca P. Souza "Juca P. Souza" <jpirama@yahoo.com.br> wrote in message news:eeeb870.-1@webx.raydaftYaTP... > Hi There, > > Anyone has a OFDM in matlab .m files that could share with me? > > I need to make some simulations on it and I have been finding lot o > problems in building a OFDM in matlab. > > If someone could send it to me at jpirama@yahoo.com.br would be very > nice. > > If someone has some book that could send me it also would be great. > > Thanks! > Juca P. Souza Better yet... keep on building it yourself and post your questions and problems here when you get stuck. You will learn a lot more this way. ...

Questions over questions
Hello people, I have a problem with my ISP! He kills my php script, if they were executed over 30 seconds. Can I use some trick to fake a little bit? That I can execute the script longer!? Greeting! Sven Dzepina wrote: > Hello people, > > I have a problem with my ISP! He kills my php script, if they were executed > over 30 seconds. > Can I use some trick to fake a little bit? That I can execute the script > longer!? > > Greeting! > > If your ISP doesn't run your script in safe mode, which it most likely does, then you can set_time_limit(0); for unli...

Matlab AM question
Dear all, I am trying to implement a very simple version of an AM receiver in Matlab but as I am new to this software package I seem to be getting nowhere. So far I have searched the web and Matlab books for examples that would help me to understand how this could be done without much success. I now this is probably a silly thing to ask but could anyone guide me in the right direction, i.e. links to websites, etc. or maybe provide me with a hints. Anything would help really. Your help is much appreciated. Thanks Justin. -- ---------------------------------------------------------------------------- -------- "There's no point in being grown up if you can't be childish sometimes" Fourth Doctor Who(Tom Baker) Doctor Who Web Site www.doctorwho.hopto.org "Justin Champion" <j.c.champion@staffs.ac.uk> wrote in news:30efnvF2vttghU1@uni-berlin.de: > > Dear all, > I am trying to implement a very simple version of an AM > receiver in > Matlab but as I am new to this software package I seem to be getting > nowhere. So far I have searched the web and Matlab books for examples > that would help me to understand how this could be done without much > success. I now this is probably a silly thing to ask but could anyone > guide me in the right direction, i.e. links to websites, etc. or maybe > provide me with a hints. Anything would help really. > > Your help is much appreciated. &g...

Few matlab questions
Hello, I have this questions for you. I hope some one can help me. So I have a background image and I want to insert another image over it. A ball for example. But this ball get on top of the background and it streches to full screan. 1) How to make matlab plot a picture in its original size. I don`l want to be stretched. 2) My ball picture is a PNG file so i need not to show the transparent pixels. I used: A = imread('ball.png','BackgroundColor','none'); image(A) but it isn`t working.. 3) Can I load an animation or sound in the plot ...

Some questions on matlab
Hi all, i am using matlab and encountered some problems. Kindly advice. 1)i am using newff function to create a neural network.After which, someone advised me to set some of the parameters ,for example, net.performFcn,net.trainParam.goal and many more. But i tried using my matlab help and search for function to llok up for what these parameters do. However, i can't find any help on these parameters. Where can i find them? 2)i intend to use the train function to train my network. In the train function, according to the help file,we can also give T(network targets) as input. Can someone ki...

question about matlab
i made a *.m file with de next code q=1.6e-19; Vd=-80; Eo=8.85e-14; E=11.9*Eo; Na=logspace(10,19,20); E_rup_1=20+5*log(Na/1e14)+Na/1e17; E_rup_2=sqrt((-2*q*Na*Vd)/E)*1e-4; semilogx(Na,E_rup_1,Na,E_rup_2) I have ploted in logaritimic scale the functions, "E_rup_1" and "E_rup_2" depending off Na, on the plot and for a Na value, the 2 functions are equal. How can i get the Na value? Thanks If you're trying to graphically determine at which value(s) of Na the two curves are equal, try ginput. HELP GINPUT Kyle beporo wrote: > > > i made a *.m file with de n...

Questions about OFDM
Hi all, I'm studying OFDM from documents available from Internet for free and I have some doubts. I understand that guard interval was added to solve problems with multipath-signal delayed. So, because symbol duration in OFDM is long, a little fraction of it can guarantee immunity against long-delayed multipath-signals. So, if I have: .....-------+-------------------------------+-----------.... ..... |GUARD| Nth Symbol |GUARD| .....-------+-------------------------------+-----------.... .........-------+-------------------------------+-----------.... ......... ...

question about Matlab
I have 2 signals with sampling freq 50Hz and different duration. a[n] = [a1 a2 a3 .... an] b[n] = [b1 b2 b3 ............................... bn] In matlab, how to find: A[z]xB[z] A[z]/B[z] Z'(A[z]/B[z]) where Z'() is the inverse Z transform. Thank you! Edw ...

Few Questions About MATLAB
Hi, was wondering if anyone could help. there are a few things i need to know about some Matlab functions 1- if Pwelch and fft are used to find the Spectral Power Density. but how come when u apply them to the same data, the graphs look different? 2- when using the sendmail function, how does Matlab make the connection and send the data? ive looked at the code that Matlab uses for "sendmail" but its very difficult to understand. if anyone could help, i would be really greatful . thanks. ...

A simple question in matlab
Hi everybody, I want to write: f=sum(sin(m*Pi*z/L), m = 0 .. 100) and plot the f function with the z interval [0,10]. But I couldn't do it. Can anyone help me? Thx. spmathsp <spmathsp@gmail.com> wrote in message <6478741.1207065427849.JavaMail.jakarta@nitrogen.mathforum.org>... > Hi everybody, > I want to write: > > f=sum(sin(m*Pi*z/L), m = 0 .. 100) > > and plot the f function with the z interval [0,10]. > > But I couldn't do it. Can anyone help me? 1. Start by defining z as a vector. Use linspace. 2. Evaluate the...

Matlab question #3
Hello All, In Matlab, I have this function: y = 20 * (x.^2).* ((1-x).^4) .* cos (12 * pi * x); When I try to see the result of y(0.5) on the m-file, the system generates a synatx error: ??? Error using ==> run Attempted to access y(0.5); index must be a positive integer or logical. The question is that how can I access this value as I need to sample this function into 1000 intervals, and use these samples for discrete analysis. My program is: function wave=haarX(); x = [0:0.001:1]; y = 20 * (x.^2).* ((1-x).^4) .* cos (12 * pi * x); %y(0.5); for i=1:length(x) Array(i) = y(i/1000); e...

Blocks question / Matlab
I want to generate a series of numbers 0-360 (a series of degrees) to input the number to a block. Is there a Matlab block that can do this? Efthimios <eangelopoulos@gmail.com> wrote in message <0864d9b1-4702-4a5b-8fac-148e79ff0b7e@k36g2000pri.googlegroups.com>... > I want to generate a series of numbers 0-360 (a series of degrees) to > input the number to a block. > > Is there a Matlab block that can do this? > > > matlab doesn't have 'blocks'. the code to do this looks like 1:360 if you are talking about simulink there are many ways t...

embedded matlab question.
Hi: I'm a long time matlab user who is new to embedded matlab. I'm trying to learn the basics but I keep getting an error like this. Could someone please tell me where I'm going wrong? Thanks, -D Error: Nonconstant expression or empty matrix. A_temp = zeros(n); Error: Could not determine the size of this expression. A_temp = A(1:n,1:n); Error: Nonconstant expression or empty matrix. A_inv = zeros(n); function A_inv = inverse(A, n) %#eml %this function computes the inverse of A(1:n,1:n) % the maximum size of A is 500 x 500; A_temp = zeros(n); A_temp = A(1:n,1:n); A_inv = zero...

question about matlab #2
hi i want to ask u how can we built dec2bin fuction in matlab plz refer me a site or answer In article <5tgumc6d0ds5@legacy>, armghan_ammar@hotmail.com (ammar armghan) wrote: > hi > i want to ask u how can we built dec2bin fuction in matlab plz > refer me a site or answer ---- If you like, you may use my home-grown version. It accepts only finite, non-negative integers and has only been tested on my 4a version of matlab. ==== function str = dec2bin(d) if (floor(d) ~= d) | (d < 0) | ~finite(d) error('arg must be a finite, nonnegative integer') en...

Matlab question #9
Hello. I am quite a beginner in matlab. I am having trouble doing the following, and was wondering if anyone could help me. I want to create a vector where the entries alternate between 0s and a RANDOM entry from the set (2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5). I need every entry from that set to be used exactly once. Thanks. "Jon N" <random_azn@msn.com> wrote in message <h3fhf3$7lq$1@fred.mathworks.com>... > Hello. I am quite a beginner in matlab. > I am having trouble doing the following, and was wondering if anyone could help me. > > I want to create a vector where the entries alternate between 0s and a RANDOM entry from the set (2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5). I need every entry from that set to be used exactly once. > > Thanks. one of the many solutions s=[2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5]; su=unique(s); ns=numel(su); nr=randperm(ns); r=zeros(1,2*ns+1); r(2:2:end)=su(nr) % r = 0 3 0 4 0 5 0 2 0 % <- one random instance... us On Jul 13, 7:48=A0am, "Jon N" <random_...@msn.com> wrote: > Hello. =A0I am quite a beginner in matlab. > I am having trouble doing the following, and was wondering if anyone coul= d help me. > > I want to create a vector where the entries alternate between 0s and a RA= NDOM entry from the set (2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5). =A0I need every = entry from that set to be used exactly once. > > Thanks. Hey, please don't double...

OFDM demodulation question
Here's my question: In doing the OFDM (like DVB-T) demodulation, why do people just talk about carrier frequency sync and carrier phase noise but not carrier phase itself? Does that mean OFDM is not coherently demodulated? Thank you for your help! -- Harry Harry said the following on 04/04/2006 00:31: > Here's my question: > > In doing the OFDM (like DVB-T) demodulation, why do people just talk > about > carrier frequency sync and carrier phase noise but not carrier phase > itself? Can you give an example of when "people don't talk about carrier phase...

A Matlab question on Patch
Dear all, I am working on a Matlab GUI. I was able to load a patch (a human brain) into one axes of my figure. Now I would like to rotate the patch in various direction, change its transparency, color etc. I will be very grateful if you kindly tell me how to do it or suggest me any books or tutorials which deals with patch and GUI. Thank you very much for your help. Regards, Sharif In article <g4sod9$8df$1@fred.mathworks.com>, Shariful <bluepearlb@yahoo.com> wrote: >I am working on a Matlab GUI. I was able to load a patch (a >human brain) into one axes of my figure....

Web resources about - Question about ofdm - comp.soft-sys.matlab

German question - Wikipedia, the free encyclopedia
"Kleindeutschland" redirects here. For the neighborhood in New York City, see Little Germany, Manhattan . 1820 map of Central Europe showing ...

Nico Rosberg and Formula One's biggest question ... can he beat Hamilton?
Formula one's biggest question. Can Nico Rosberg beat Lewis Hamilton?

Lawyers Question JWT Investigation, Seek to Submit Video Evidence
Lawyers for Erin Johnson, who filed a suit in New York last week against JWT and its Chairman-CEO Gustavo Martinez over alleged racist and sexist ...

Alphabet: Morgan Stanley Has Five Questions for Their Cloud Conference
Morgan Stanley‘s Brian Nowak today reiterates an Overweight rating on shares of Alphabet (GOOGL), arguing the company’s cloud computing service ...

On "Face the Nation" today, John Dickerson asked Donald Trump a question about law that I — being in ...
From the transcript: DICKERSON: At the debate, you talked about H-1B visas. You said: "It's something I, frankly, use, and I shouldn't be allowed ...

Germanwings Crash Probe Questions Pilots' Medical Privacy Rights
Pilots with mental health issues shouldn’t enjoy the same privacy rights as other people because of the threat posed to passenger safety, according ...

After Trump rally in Chicago, GOP rivals question Trump endorsements - Chicago Tribune
In a Republican presidential primary filled with extraordinary moments, a 24-hour stretch that began Friday night stands above them all.

10 questions to ask analytics vendors (before you buy)
Analytics purchase decisions are littered with opportunities for missteps. These 10 questions will help ensure you get off on the right foot. ...

Activists question United CEO's role, pay
Two hedge funds that launched a boardroom fight with United oppose plans to give its CEO the role of chairman and have concerns about his pay. ...

Questions remain as 1 of 2 escaped New Mexico inmates caught
ALBUQUERQUE, N.M. (AP) — With the headcount complete, the two guards pulled away from a state correctional center in a remote part of southeastern ...

Resources last updated: 3/15/2016 12:25:23 AM