Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

suppose i have a matrix [1.22 0 2.33 3.444 1.222 0] and i want the solution to be the number of iterations between non zero values. the solution should be [1 2 1 1]

1 view (last 30 days)
Z(xidx) = z;
this is the vector that i have.
  1 Comment
Star Strider
Star Strider on 19 Mar 2017
Your vector has 6 elements and your ‘solution’ has 4.
What procedure do you use for getting the ‘solution’? What ‘rule’ do you use?

Answers (0)

This question is closed.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!