How to get the longest consecutive values in a column vector and the position at which it starts
Hello,
Suppose i have a single column vector A’=[0 0 0 1 0 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1]
I only want the longest consecutive values of 1’s and display only that.
I’d really appreciate any help!Hello,
Suppose i have a single column vector A’=[0 0 0 1 0 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1]
I only want the longest consecutive values of 1’s and display only that.
I’d really appreciate any help! Hello,
Suppose i have a single column vector A’=[0 0 0 1 0 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1]
I only want the longest consecutive values of 1’s and display only that.
I’d really appreciate any help! consecutive, longest, identical MATLAB Answers — New Questions