<div dir="ltr">On Mon, Jun 26, 2017 at 4:40 PM, Éric Depagne <<a href="mailto:eric@depagne.org">eric@depagne.org</a>> wrote:<br>><br>> Le lundi 26 juin 2017, 04:27:47 SAST Éric Depagne a écrit :<br>><br>> > Hi list.<br>><br>> Hi list,<br>><br>> Some more details on my problem.<br>><br>> I know that I can select the elements individually through a for loop, and that will provide me with the extraction I need, but I was wondering if there was a way to do that without a loop.<br>><br>> Repeating 4 times A[X1[i]:X2[i],1] will work fine, but I was looking for something like<br>> A[X1:X2, 1]<br><br>There isn't one since for each `i`, there will be a different number of items in the slice, so the result would not be able to be fit into an array with a uniform shape. The loop is the right way to do this.<br><br>--<br>Robert Kern</div>