Community Profile

photo

D Marini


Loughborough Univ

Active since 2015

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Answered
how to count non zero elements in a vector and replace this values based on the count values
Thank you Azzi, The code seems to work OK, Just wonder if would be possible to explain how it works (for bigginers is diffi...

8 years ago | 0

Question


how to count non zero elements in a vector and replace this values based on the count values
Dear all, I'm a new matlab user and in my case i have a vector let say: v= [0 0 0 0.1 0.2 0.3 0.4 0.5 0 0 0 0 0 0 0.1 0.2] ...

8 years ago | 3 answers | 0

3

answers