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

Home » Public Forums » archive » Deleting specific instances of the structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Deleting specific instances of the structure [message #87351] Mon, 27 January 2014 14:51 Go to previous message
midhunjoyp is currently offline  midhunjoyp
Messages: 5
Registered: January 2014
Junior Member
Hi all,

I am having some difficulty working with structure arrays.

I initialized an array of 10 structures with the following fields.

domain = REPLICATE({frame :0, particles : fltarr(5,6000),link : [-1,-1]}, 10)

The calculations were performed for each field of the structure array. After calculations, there are some instances of the structure which are empty and needs to be deleted.

For eg, out of the 10 structure instances, domain[2], domain[6],domain[7] are the empty ones and needs to be deleted and the final result should have only 7 elements in the structure array.

Is there any way to perform delete operation(other than creating a new structure and assigning the selected ones to it) ?

Best,
Midhun
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: urgent-outliers removal
Next Topic: Instances of structure array with varying no. of elements

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

Current Time: Wed Oct 08 15:07:06 PDT 2025

Total time taken to generate the page: 0.30049 seconds