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

Home » Public Forums » archive » matrices with different size
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: matrices with different size [message #42247 is a reply to message #42151] Thu, 13 January 2005 14:30 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <3374f20e.0501130821.41623a00@posting.google.com>, "V.S."
<ikverveelmijdood@hotmail.com> wrote:


> Hi,
> my problem is the following: I have a dataset with a strong sinusoidal
> component. However, its period and height are not constant. What I
> exactly want is to split-up the data in different parts, and put them
> into a matrix. Is this possible in IDL (and how?) to generate a matrix,
> filled with vectors that have a different length? I know that in Matlab
> "cell arrays" can be used.
> Best regards,
> Veerle

I have to ask why you want to split the dataset into (presumably) single
wave period and not something use Fourier or Wavelet analysis on the
full data but anyway....You could use pointers.
e.g

a=ptrarr(10)
a[0]=ptr_new(fltarr(100))
a[1]=ptr_new(fltarr(20))
a[2]=ptr_new(lonarr(10))
..
plot, *a[0] ;etc

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LSODE status=-1
Next Topic: Imposing inverse fft to be real

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

Current Time: Sat Nov 29 09:52:16 PST 2025

Total time taken to generate the page: 0.47780 seconds