The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: alternative to conv command
Replies: 7   Last Post: Apr 29, 2011 10:18 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Balachander Narasimhan

Posts: 39
Registered: 2/4/08
Re: alternative to conv command
Posted: Apr 29, 2011 10:18 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


thanks for your interest in my problem. You should try the complex case. In my computer, the real case took 8 secs and the complex case of the same size took 79 seconds. But when I use the fft method, the complex case took only about 4 seconds. this is huge savings!!

ImageAnalyst <> wrote in message <>...
> So you're filtering a signal that's "2048e3" (that's 2048000) long
> with a kernel that's 2048 long? That's a big kernel. But it's still
> fast. Look:
> clc;
> data = rand(1,2048000);
> tic
> smoothedData = conv(data, ones(2049,1)/3);
> toc
> Elapsed time is 1.541351 seconds.
> I made the kernel an odd number of elements (as is normally done) just
> to make sure it's symmetric.
> So did you try the Fourier method like I suggested?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.