FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2006, 11:38 AM
rakesh5454
Guest
 
Posts: n/a
Default zero padding in matlab

could some1 plz help me out with this....!!!!

i have two wave files. 1 is speech and other is music file. obviously
their sizes would be different. i would like to mix both of them and
find the energ of the resultant signal. for this if we zero pad 1 then
make the size sam we can both. could some1 write a code for it. i 'm a
new bee and donno whether i can ask this here r not.... but some1 try
to help me out....

thanks for ur time....!!!

Reply With Quote
  #2 (permalink)  
Old 06-26-2006, 11:53 AM
Rune Allnor
Guest
 
Posts: n/a
Default Re: zero padding in matlab


rakesh5454 wrote:
> could some1 plz help me out with this....!!!!
>
> i have two wave files. 1 is speech and other is music file. obviously
> their sizes would be different. i would like to mix both of them and
> find the energ of the resultant signal. for this if we zero pad 1 then
> make the size sam we can both. could some1 write a code for it. i 'm a
> new bee and donno whether i can ask this here r not.... but some1 try
> to help me out....
>
> thanks for ur time....!!!


First, no one ("no 1" as you probably would write it) are willing to
spend any time on helping you if you are not willing to spend time
on formulating a question. This is an international forum, and lots of
the participants are not fluent in English, so nobody are required
to write perfect all the time. However, spelling out the words as
best one can *does* add to the impression that asking the question
is important to you, and that it may be worth somebody else's
while to help out.

As for what you attempted to ask for:

[N1,Ch1]=size(data1);
[N2,Ch2]=size(data2);
data1zp = [data1;zeros(N2-N1,Ch1)];

Rune

Reply With Quote
  #3 (permalink)  
Old 06-26-2006, 12:42 PM
rakesh5454
Guest
 
Posts: n/a
Default Re: zero padding in matlab

Sorry everybody, i was not thinking of anything except the question
while writing the query. will see that it wont repeat in future. my
sincere apologies Rune and thanks for the code.

rakesh

Rune Allnor wrote:
> rakesh5454 wrote:
> > could some1 plz help me out with this....!!!!
> >
> > i have two wave files. 1 is speech and other is music file. obviously
> > their sizes would be different. i would like to mix both of them and
> > find the energ of the resultant signal. for this if we zero pad 1 then
> > make the size sam we can both. could some1 write a code for it. i 'm a
> > new bee and donno whether i can ask this here r not.... but some1 try
> > to help me out....
> >
> > thanks for ur time....!!!

>
> First, no one ("no 1" as you probably would write it) are willing to
> spend any time on helping you if you are not willing to spend time
> on formulating a question. This is an international forum, and lots of
> the participants are not fluent in English, so nobody are required
> to write perfect all the time. However, spelling out the words as
> best one can *does* add to the impression that asking the question
> is important to you, and that it may be worth somebody else's
> while to help out.
>
> As for what you attempted to ask for:
>
> [N1,Ch1]=size(data1);
> [N2,Ch2]=size(data2);
> data1zp = [data1;zeros(N2-N1,Ch1)];
>
> Rune


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implicit Zero Padding? Gary Spivey Verilog 8 11-03-2006 06:54 PM
zero padding radix - 2 FFT [email protected] DSP 5 05-14-2006 05:28 PM
Zero Padding in radix 2 FFT Iqbal DSP 123 01-13-2006 06:13 PM
Zero padding in FFTW Peng Yu DSP 5 03-06-2005 04:21 AM
Zero Padding a DFT quick one DSP 5 02-02-2005 05:34 PM


All times are GMT +1. The time now is 01:29 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved