negative number in vector
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
bsta
el 14 de Feb. de 2019
Respondida: madhan ravi
el 14 de Feb. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!