Extracting values within a matrix

조회 수: 1 (최근 30일)
Rumaanah Khan
Rumaanah Khan 2020년 3월 21일
답변: madhan ravi 2020년 3월 21일
I have a 20 x 1 matrix of numbers and I need to compare this matrix to two threshold values
the values I obtain need to be below and above these threshold values and then i need to store them in a new matrix.
what function do i use and also how do I find their positions in the original matrix ?

답변 (1개)

madhan ravi
madhan ravi 2020년 3월 21일
Use logical operators ">" "<" and "find()"

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by