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

Home » Public Forums » archive » Re: *replicate* but with arrays
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: *replicate* but with arrays [message #26618 is a reply to message #26615] Mon, 10 September 2001 15:15 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Try
a = rebin(b, 3, 50)
Cheers,
Pavel

aqueous wrote:
>
> If I have array a[3,50] and array b[3], how do I fill all rows of a
> with the row vector b? For example, what I want to do is
>
> a = intarr(3,50)
> b = [6,5,4]
> a[0:2,*] = b ;or a[*,*] = b
>
> a should now look like
>
> [6,5,4]
> [6,5,4]
> [6,5,4]
> [6,5,4]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: *replicate* but with arrays
Next Topic: compiling before needing

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

Current Time: Sun Nov 30 07:14:30 PST 2025

Total time taken to generate the page: 0.87862 seconds