Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Zero padding problem in Simulink

Status
Not open for further replies.

Antonio_Magma

Full Member level 2
Joined
Jun 21, 2005
Messages
136
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
2,777
I have some questions regarding implementing OFDM in Simulink...

I'm using BPSK, thus my output after BPSK would be a complex number. I've splited up the real (16 samples) and imag (16 samples) numbers into 2 matrices.

I plan to use IFFT with 64 samples. Except for the DC (sample 1), Nyquist center frequency (sample 32) and the real (13~31) and imag (33~48) samples at both sides of the Nyquist center, i want to pad it with zeros.

However, the zero pad block only allows me to pad either from the beginning or from the end.

How do i pad between selected rows, ie rows 2~12 and 49~64?

This is the image of my OFDM transmitter in Simulink

[img=http://img72.imageshack.us/img72/4289/p0io.th.jpg]
 

there are two options here, both are easy.

1) you can do zero padding two times, using the vertcat block

2) you can do zero padding of the total number of zeros and using a "selector" block you can distribute the guard carriers (zero) wherever you want specifying the output indicies.

this should help..
 

Thx Gandharva for replying, however can u b more specific with d 2 methods?
 

1) zero padding of the initial zeros 2 to 12 using vertcat , the input to the vertcat block should be the data frame and a zero's frame of size 11, as specified by you. Now the output of this should go into another vertcat block which will do the later zero padding of coefficients from 49 to 64 similar to the first block.

2) this involves the usage of the "selector" block, you have to check if your version of matlab has this block or not. use the matlab help for the description of this block, that should give you the idea of using it.

happy learning..
 
Ah, i c...i've managed to used the selector block to perform the task.

Thx for helping Gandharva!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top