MathGroup Archive 2012

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

Search the Archive

Group and Replace itens sequence in a list

Hi All

   I have a simple problem that is:


I want to replace all a,b,a sequence by X to get:


Then I want to group it by X intervals as

If I don't need to put the intermediate X, even better!
I think the with pattern, RaplaceAll and DeleteCases I can do It. Some clue?

  • Prev by Date: Re: Drawing a Line From One Plot to Another
  • Next by Date: Re: NDSolve: large relative error without error message
  • Previous by thread: Re: Non-sequential composition of pure functions
  • Next by thread: Re: Group and Replace itens sequence in a list