analyzing sequences matlab <p>I am trying to write a short matlab function that will recieve a vector and will return me the index of the first element of the longest sequence of 1s (I can assume that the sequence consists of 1s and 0s). for example: </p> <blockquote> <blockquote> <p>IndexLargeSeq([110001111100000000001111111111110000000000000000000000000000000]) </p> </blockquote> </blockquote> <p>will return 21 - which is the index of the first 1 of the longest sequence of 1s.<br> thank you<br> ariel</p>