Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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 visualizzazione (ultimi 30 giorni)
Z(xidx) = z;
this is the vector that i have.
  1 Commento
Star Strider
Star Strider il 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?

Risposte (0)

Questa domanda è chiusa.

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by