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

Home » Public Forums » archive » Newbie question
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: Newbie Question [message #16844 is a reply to message #5968] Mon, 23 August 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Dan Fletcher <djfletcher@ucdavis.edu> writes:
>
> Coeff=DIGITAL_FILTER(Flow,Fhigh,50,40)
> FilteredTestDataSub=CONVOL(Data[0,*],Coeff)
>
> When I do this, I get an error that says
>
> CONVOL: Kernel's dimensions are incompatible with operand's.
>
> I think this is because the Data[0,*] gives a 1xm array rather than a
> vector of length m. I can't figure out any way to change that 1xm array
> into a vector without a FOR DO loop. Is there some simple way to solve
> this problem?
>

I don't know much about the digital filtering, but if you want to
convert a matrix to a vector, it's pretty simple. Like this:

FilteredTestDataSub=CONVOL( (Data[0,*])[*] ,Coeff)

Any vector or matrix with a [*] after it will be converted to a
one-dimensional vector. The parentheses are needed because Data[0,*]
is an expression.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help with data points of contour.
Next Topic: idl > memory problems

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

Current Time: Sun Oct 12 13:01:11 PDT 2025

Total time taken to generate the page: 0.40055 seconds