Community Profile

photo

Nicolò Castellani


Last seen: environ 4 ans il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


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 ...

environ 4 ans il y a | 1 réponse | 0

1

réponse

Question


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...

environ 4 ans il y a | 2 réponses | 0

2

réponses