필터 지우기
필터 지우기

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);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by