MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Finding if a sequence occurs 

Subject: Finding if a sequence occurs From: Diego Zegarra Date: 18 Feb, 2009 03:05:05 Message: 1 of 19 
I know this would work, 
I assume the size of a is merely a nuisance, that is there is no special meaning to having a sequence occur in the second row versus the first. 
Even simpler (if I am on the right track to what you want) 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 07:29:03 Message: 4 of 19 
"Matt Fig" <spamanon@yahoo.com> wrote in message <gng6m6$hlf$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 07:36:02 Message: 5 of 19 
Even simpler: 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gngdp2$226$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 08:07:02 Message: 7 of 19 
"Jos " <#10584@fileexchange.com> wrote in message <gngf46$10v$1@fred.mathworks.com>... 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gngfj6$c14$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Steve Amphlett Date: 18 Feb, 2009 09:52:02 Message: 9 of 19 
"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gnftt0$1jh$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 10:06:01 Message: 10 of 19 
Of course, accumarray AND sparse can be together 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gngmi9$692$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 11:54:01 Message: 12 of 19 
"Jos " <#10584@fileexchange.com> wrote in message <gngp4q$og0$1@fred.mathworks.com>... 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message 
Subject: Finding if a sequence occurs From: Diego Zegarra Date: 18 Feb, 2009 16:08:01 Message: 14 of 19 
Hi Jos, 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 16:18:02 Message: 15 of 19 
"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gnhbp1$2oe$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Diego Zegarra Date: 18 Feb, 2009 16:47:01 Message: 16 of 19 
Bruno, 
Subject: Finding if a sequence occurs From: Bruno Luong Date: 18 Feb, 2009 18:04:02 Message: 17 of 19 
"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gnhe25$bln$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Steve Amphlett Date: 18 Feb, 2009 18:25:03 Message: 18 of 19 
"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gnhbp1$2oe$1@fred.mathworks.com>... 
Subject: Finding if a sequence occurs From: Steven Lord Date: 18 Feb, 2009 18:28:58 Message: 19 of 19 

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.