MathGroup Archive 2009

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg101864] patterns
  • From: Francisco Gutierrez <fgutiers2002 at>
  • Date: Mon, 20 Jul 2009 06:00:34 -0400 (EDT)

Dear Group:
Ther output of a code I made (which includes a minimization) is of the following guise:
Of this output, I want to capture only the a's and the c's. There is an easy and sloppy manner, but general and I think not slow, to do this because they appear always at the end of the output. But I wonder if it were possible to use pattern matching to make the same thing, something of the sort of Cases[myoutput, a[__]]. Is it possible? How can it be done? 

  • Follow-Ups:
    • Re: patterns
      • From: Leonid Shifrin <>
    • Re: patterns
      • From: DrMajorBob <>
    • Re: patterns
      • From: Adriano Pascoletti <>
  • Prev by Date: Re: Invisible - misleading documentation
  • Next by Date: Re: Invisible - misleading documentation
  • Previous by thread: Re: best way to save 3D plot as .eps for latex document?
  • Next by thread: Re: patterns