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

Home » Public Forums » archive » Help with Idl+Envi
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: help with idl [message #83183 is a reply to message #71738] Thu, 07 February 2013 10:26 Go to previous messageGo to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
On Thursday, February 7, 2013 9:13:36 AM UTC-5, fd_...@mail.com wrote:
> Does anyone know how to create a Toeplitz matrix in idl??
>
>
>
> Best Wishes
>
> Mar

DIAG_MATRIX can build this easily.

N=8
OneLine = Indgen(N)+1
a = make_array(N,N)
FOR ii=-N+1, N-1 DO a += Diag_Matrix(Replicate(OneLine[ii],abs(N-abs(ii))),ii)

The abs() business was to allow for lower triangular portion to be filled. I usually use upper triangular matrices.

-B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: New IDL 8.2.2 Workbench
Next Topic: Kronecker product reversal, or division

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

Current Time: Wed Oct 08 19:33:29 PDT 2025

Total time taken to generate the page: 0.00395 seconds