Borrar filtros
Borrar filtros

How can I get the numbers from a vector?

1 visualización (últimos 30 días)
Hüseyin
Hüseyin el 21 de Dic. de 2014
Comentada: Hüseyin el 21 de Dic. de 2014
X= rand(50,1)*(100-1)+1 I produced 50 random numbers between 1-100 with this code in a vector. I want to write the numbers between 45-50 to another vector.

Respuesta aceptada

Matt J
Matt J el 21 de Dic. de 2014
anothervector=X(X>=45 & X<=50);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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!

Translated by