say I have a vector v=[1 2 5 6 -8 5 2 7]
and I to create a new vector that has all the elements until the negative number shows up
such as c=[1 2 5 6]
how would you do this without using a while loop

 Risposta accettata

Più risposte (0)

Categorie

Prodotti

Release

R2017a

Richiesto:

il 14 Feb 2019

Risposto:

il 14 Feb 2019

Community Treasure Hunt

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

Start Hunting!

Translated by