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

Home » Public Forums » archive » Assigning the values of a matrix to a larger matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Assigning the values of a matrix to a larger matrix [message #88467] Wed, 30 April 2014 13:52 Go to previous message
Fabrice Lambert is currently offline  Fabrice Lambert
Messages: 6
Registered: March 2012
Junior Member
Hello,

Is there a way to write the following code in IDL/GDL without a for loop?

for i=0,90 do begin
Base[*,*,i]=Input[*,*,0]
endfor

for example something like this (which unfortunately does not work:

Base[*,*,0:90]=Input[*,*,0]

Thanks,
Fabrice
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: ENVI_GLT_DOIT and ENVI_GEOREF_FROM_GLT_DOIT
Next Topic: GDL weirdness (bug?) with modulo command

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

Current Time: Wed Oct 08 15:37:20 PDT 2025

Total time taken to generate the page: 0.00405 seconds