comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: I need a bit of help....Convol and functions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: I need a bit of help....Convol and functions [message #50533 is a reply to message #50393] Wed, 04 October 2006 05:59 Go to previous message
D.Kochman@gmail.com is currently offline  D.Kochman@gmail.com
Messages: 7
Registered: October 2006
Junior Member
> Yes, func() needs to create an array for CONVOL() to convolve. However,
> sumex should already be an array, in order for this code to work as
> intended, and this code does nothing to change any aspect of sumex. I'm
> not sure I understand what you mean by the comment "but its a
> function".


Thanks for the help, slowly but surely I'm starting to get it. What I
meant by "but its a function" is I just don't see how sumex is an
array. If I were to put

sumex = X

that to me makes sumex a function, namely, f(x)=x

if it was [(1,1),(2,2),(3,3)....] that to me is an array.

I know it has to be an array though.....I'll just stare at it some
more.

The reason I ask is related to my original question, and that is pretty
much that I have to redefine sumex, with my original monstrosity of an
equation. Which approximately is (cos(x)*exp(-x)) conv exp(-x/t). I
wanted to know how the original author of the software made sumex an
array, so I can apply the same principles to my equations and not do
the convolution analytically, but rather discretely. Its tough
jumping into a new language with the source code having no commenting,
and trying to pick it all apart.

I will re look at the documentation for convolve, and twiddle around
with things to see how they work, and how I can manipulate them I can
do.

As always, I'm grateful for whatever help I can get here. This is
going to be a long year of IDL learning, and I did myself the necessary
disservice of jumping in on the deep-end. =P Its been a long while
too since I did any programming (8 years or so), so I'm relearning all
the jargon. Slowly but surely its all coming back. Nothing really has
the power to make me feel like such an idiot as programming. However,
in the end when everything works its a very satisfying feeling.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Low pass filter - Problem with kernel
Next Topic: I need a bit of help....Convol and functions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 03:33:11 PDT 2025

Total time taken to generate the page: 1.59563 seconds