05-10-2015 01:07 PM
Hi everyone
I want to downsample the data and then convolve it with match filter. Could someone help me with downsampling . I do not i should use resample or something else.
Thank you for your help
05-11-2015 03:38 AM
Try the decimate VI, it optionally averages before downsampling. it's in signal processing->signal operation->decimate.
Good luck,
Danielle
05-11-2015 04:09 AM
but decimation and downsampling are different things? should I use decimatefor sure.
05-11-2015 04:12 AM
decimation is the process of taking one out of X samples. downsampling usually applies a low pass filter first, like a gaussian or similar. In this case, if you apply decimate with the average boolean TRUE, you apply an averaging low pass filter and then decimate. For most implementations this is good enough. For example, I have used this successfully to resize images without aliasing. What exactly is your use case?
05-11-2015 04:18 AM
I did the first one with upsampling, generate filter coefficent and convolution.
but the second one , I have complex input waveform .
05-11-2015 04:25 AM
this is the block I should complete.
05-11-2015 04:29 AM
I do not know, as I don't know what "complex input waveform" means. Sorry.
05-11-2015 04:31 AM
our teacher said i can use decimate. just assume it is complex waveform input. how can i connect complex waveform to decimator?
05-11-2015 04:42 AM
If I understand correctly, think about what data a waveform has, and how you can change it to two 1D arrays for X and Y data. you can then put them in the decimate function.