Repeated event in a array part 2

What I want to do, is find patterns and once I found a binary pattern, I want to plot in seperate plots of the pattern plus continuation of next 10 elements in different colour.
I hope this makes sense.

4 Comments

Why didn't you provide a link to "part 1"?
You should add the example from your last question to this one.
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
http://www.mathworks.com/matlabcentral/answers/728-how-do-i-write-a-good-question-for-matlab-answers
Also, since you have only just learned to find the patterns and plot the sections an hour ago, I doubt you have thought about this question much.
I believe there are a number of relatively straight forward solutions. What have you tried so far.
Per the link is: http://www.mathworks.co.uk/matlabcentral/answers/37395-repeated-event-in-a-array
Daniel,
Thank you for that, I tried to ammend your arrayfun, to use plot rather than stem and changing the (0:n) but if you could help it would be very helpful.
Thanks
@Per: I've inserted the link to the previous question.

Answers (0)

This question is closed.

Tags

Asked:

on 4 May 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!