negative number in vector
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
bsta
le 14 Fév 2019
Réponse apportée : madhan ravi
le 14 Fév 2019
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
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!