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

Home » Public Forums » archive » Re: How can I append a leading or trailing column to an existing array?
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: How can I append a leading or trailing column to an existing array? [message #51348 is a reply to message #51347] Fri, 17 November 2006 02:06 Go to previous messageGo to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On 16 Nov 2006 13:22:19 -0800, willettk@gmail.com wrote:

> My way:
>
> a = [ [1,1], [1,1] ]
> b = [2,2]
> c = intarr[3,2]
> c(0,*) = b
> c(1:2,*) = a
>
> (there must be a better way . . . )



a = [ [1,1], [1,1] ]
b = [[2],[2]]
c=[a,b]


So, make sure b is a column vector. Define b that way or use transpose
or reform.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How can I append a leading or trailing column to an existing array?
Next Topic: Bitmap vectorization

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

Current Time: Fri Oct 10 18:00:06 PDT 2025

Total time taken to generate the page: 0.23954 seconds