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

Home » Public Forums » archive » Re: array 'minus'
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: array 'minus' [message #36085] Tue, 19 August 2003 01:01 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
tomson wrote:

> Hi, I'd like to eliminate some elements in a array. For example,
> A=[1,2,3,4,5,6,7,8,9,0]
> N=[3,6]
> I want to get a array b equal to A but without A(3) and A(6). How to do
> that?
>
> Thank you.
>
> Tomson

Dear Tomson

print,a_not_b(a,n)
% Compiled module: A_NOT_B.
% Compiled module: UNIQ.
0 1 2 4 5 7 8 9

You can get a_not_b and several others from our library.

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/a_not_b_dbase.pro.html

There is an a_and_b routine and some others available.

Some people asked how to unpack tgz files. So here is an explaination what
it is. The tgz extension is named tarball and it is the same as tar.gz.

You can unpack it on MS windows by winzip or on unix by gnu tar with tar
zxvf file.tgz.

regards
Reimar

---
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help with EOS_GD_INTERPOLATE
Next Topic: IDL authors - get cracking!

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

Current Time: Wed Oct 08 15:34:33 PDT 2025

Total time taken to generate the page: 0.00427 seconds