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

Home » Public Forums » archive » replace elements in 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
replace elements in array [message #49002] Sat, 10 June 2006 10:47
johnadams_1980 is currently offline  johnadams_1980
Messages: 3
Registered: June 2006
Junior Member
Hi All,

How do you replace certain (common) elements in a array without using a
for loop? For e. g., I have an array:

a=[45,67,9999.,9999.,24]

and would like to replace all the 9999. with 0.00 so that a becomes

[45,67,0.00,0.00,24]

(the array is huge, so changing each element individually is not an
option).

Cheers,
John
[Message index]
 
Read Message
Previous Topic: Re: reading in | delimited files into multiple arrays
Next Topic: Re: replace elements in array

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

Current Time: Fri Oct 10 06:16:46 PDT 2025

Total time taken to generate the page: 1.44024 seconds