Feeds
질문
How can I count the number of 1 after every element of the vector?
I have this vector of 1 and 0: X= [1 1 1 1 0 0 1 1 0 1 0 1 0 0 1 1] I want to create a vector Y that counts for every element ...
거의 6년 전 | 답변 수: 1 | 0
1
답변질문
How to count the number of 1 between two 0 in a vector?
I have this vector: [0 1 1 1 0 0 1 0 1 1 0 1] I want to create a vector that every time that I have 1 or more consecutive 1 it...
거의 6년 전 | 답변 수: 2 | 0

