![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/548463/image.png)
Finding the elements within a certain range [XMin, XMax] in every column of an array, then converting all the elements of each column within that range to the minimum of that range
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to find all the elements within a certain range in every column of an array. For example, I want to find all the elements, x, of column 1 of the array below that satisfy: 1>x>=0,01 (minimum of column). Then find the elements x of column 2 that satisfy 5>x>=0,05, and in column 3, all the elements for which 2>x>=0,07. Then I want to convert all those elements to the minimum values of that range for each columns, which are: 0,01, 0,05 and 0,007.
It must look like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/548458/image.png)
댓글 수: 0
채택된 답변
Star Strider
2021년 3월 13일
‘find the minimum in every column of an array, then convert all the elements of each corresponding column that have a value below or equal to the minimum to the minimum of that column’
The matrix would be unchanged, since the minimum is the minimum and that is all that would be replaced.
The posted illustration likewise makes no sense!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/548463/image.png)
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!