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

Home » Public Forums » archive » replacing blocks in an array with other array values?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
replacing blocks in an array with other array values? [message #78820] Sun, 25 December 2011 13:11
Ecaterina Coman is currently offline  Ecaterina Coman
Messages: 3
Registered: December 2011
Junior Member
hi guys,
I have a 4*4 array, for example, and i want to replace the center 2*2
block of an array with the values in another array

lets say A is 4*4
and B is 2*2
I tried doing A[1:2,1:2]=B but it doesn't change anything in A
on the other hand, when I put A[1:2,1:2]=some scalar, it replaces the
whole block by that scalar and works

i feel like there should be a simple way to do this but cannot figure
it out
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Coyote Graphics Interpretation of Long Integers
Next Topic: Re: replacing blocks in an array with other array values?

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

Current Time: Wed Oct 08 11:36:23 PDT 2025

Total time taken to generate the page: 0.00568 seconds