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

Home » Public Forums » archive » IDL Beginner exercise help
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: IDL Beginner exercise help [message #93747 is a reply to message #93746] Tue, 11 October 2016 18:12 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
One way is
IDL> a = reform( [10:21], 4,3)

where REFORM reshapes your 12 element vector into a 4 x 3 array.

On Tuesday, October 11, 2016 at 8:00:33 PM UTC-4, Cheryl wrote:

>
> Can I ask you one more question:)?
>
> How to create a 4 by 3 integer array that counts from 10 to 21?
> C= INTARR(4,3) ; this is an integer array of two dimensions
> but how do I write it with [10:21]?
>
> Thank you
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ncdf_varput for NetCDF coordinate axes
Next Topic: How to supress dialog popup when netcdf file is corrupt?

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

Current Time: Wed Oct 08 18:16:54 PDT 2025

Total time taken to generate the page: 0.00497 seconds