フィルターのクリア

How can I get the numbers from a vector?

1 回表示 (過去 30 日間)
Hüseyin
Hüseyin 2014 年 12 月 21 日
コメント済み: Hüseyin 2014 年 12 月 21 日
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.

採用された回答

Matt J
Matt J 2014 年 12 月 21 日
anothervector=X(X>=45 & X<=50);
  1 件のコメント
Hüseyin
Hüseyin 2014 年 12 月 21 日
thanks a lot..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by