Effacer les filtres
Effacer les filtres

How can I get the numbers from a vector?

1 vue (au cours des 30 derniers jours)
Hüseyin
Hüseyin le 21 Déc 2014
Commenté : Hüseyin le 21 Déc 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.

Réponse acceptée

Matt J
Matt J le 21 Déc 2014
anothervector=X(X>=45 & X<=50);

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices 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!

Translated by