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 5:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


thanks for your reply. your filter length is 3 whereas mine is 2048. I think thats the problem.

ImageAnalyst <> wrote in message <>...
> On Apr 29, 3:08 pm, "Balachander Narasimhan"
> <> wrote:

> > Hi,
> >
> > thanks for the reply. I am quite sure it is conv command. I step through the code and it takes 1min and 14s for a sequence of length 2048e3 in a 1.2 GHz cpu. Do you think this is resonable?

> -------------------------------------------------------------------
> Here's what I get when running it several times on this not-
> particularly-large array:
> data = rand(1,2048000);
> tic
> smoothedData = conv(data, ones(3,1)/3);
> toc
> Elapsed time is 0.044840 seconds.
> Elapsed time is 0.054861 seconds.
> Elapsed time is 0.048844 seconds.
> Elapsed time is 0.046158 seconds.
> or about 2000 times faster than what you're getting. What exactly are
> you doing such it it's so slow?
> Elapsed time is 0.063725 seconds.
> Elapsed time is 0.048575 seconds.
> Elapsed time is 0.042594 seconds.

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.