How can I delete values below certain treshold in vector

조회 수: 14 (최근 30일)
I have a 3521x1 vector and I would like to drop all values above the value of 10. How can I do this?

채택된 답변

Pawel Jastrzebski
Pawel Jastrzebski 2018년 1월 11일
편집: Pawel Jastrzebski 2018년 1월 11일
vector = randi(20,1,352);
newVector = vector(vector<10);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by