Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

split again

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73622] split again
  • From: Arkadiusz.Majka at gmail.com
  • Date: Fri, 23 Feb 2007 04:36:00 -0500 (EST)

Hi,

Thank you very much for your help in my provious post. Now, consider
please a list

z=Table[Random[],{1000}];

zSplit=Split[z,#1<=0.7 === #2>=0.7];           (bulit thanks to your
help)

I want to pick the first sublist of zSplit that consists of elements
<= 0.7 and whose length is greater than a certain number (say 5). I
think that a good candidate would be using Cases and variations of _ ,
but I don't know how.

What I want to do (and what my both posts are about) is to find the
first sublist of z with all elements less than A and the length of
this sublist must be greater than B. Maybe there exists better
solution than to Split z in advance since what I need to do in my next
step is to find ONLY the FIRST sublist of splitted z.

Thanks again,

Arek



  • Prev by Date: Re: split
  • Next by Date: MatrixRank Modulus->8 - BUG
  • Previous by thread: Re: Change multiplication operations into convolution
  • Next by thread: Re: split again