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

Home » Public Forums » archive » findgen([variable])
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
findgen([variable]) [message #22906] Tue, 12 December 2000 08:04
Martin Skou Andersen is currently offline  Martin Skou Andersen
Messages: 5
Registered: December 2000
Junior Member
Hi...
I was wondering if I could use findgen with a variable.
If I in one situation would use a one dimension array and in another
situation a mutiple dimension array how would i do?
I have tried with findgen(x), where x could be an integer or an array.
But when x is an array IDL gives me following error message:
IDL> r=fltarr(x)+10
% FLTARR: Expression must be a scalar in this context: X.
% Execution halted at: $MAIN$

where x is:
IDL> print,x
5 7
IDL> help,x
X INT = Array[2]
Is it posible to make an mutiple dimensional array by using a variable
such as findgen(x)?
--
Thanx in advance
Martin Skou Andersen
E-mail: Skou@fys.ku.dk
Martin_Skou@mail.tele.dk
Homepage: http://www.fys.ku.dk/~skou/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL and external app in concurrent mode
Next Topic: Re: IDL and external app in concurrent mode

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

Current Time: Wed Oct 08 14:56:30 PDT 2025

Total time taken to generate the page: 0.00413 seconds