Bound Values of an array

버전 1.0.0.0 (2.05 KB) 작성자: Pramit Biswas
Check whether value of the array within specified range or not and change accordingly
다운로드 수: 7.2K
업데이트 날짜: 2013/8/29

라이선스 보기

Check whether value of the array within specified range or not, if in range it stays there as it is and if not then substitute by boundary value (depending upon which it breaks, if higher boundary breaks then replaced by higher boundary value and vice-versa)

function [ A2comp ] = MinMaxCheck( minimum, maximum, A2comp )
A2comp is the array to check
minimum and maximum are arrays which holds the minimum and maximum value of each element of an array (A2comp) respectively
output returns the array where all values within the range
if element of A2comp is less than minimum boundary value then it's changed to minimum boundary value
if element of A2comp is greater than maximum boundary value then it's changed to maximum boundary value
all array must be same in length

인용 양식

Pramit Biswas (2026). Bound Values of an array (https://kr.mathworks.com/matlabcentral/fileexchange/43251-bound-values-of-an-array), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2013a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Logical에 대해 자세히 알아보기
도움

도움 준 파일: BoundNDArray(array,lb,ub)

버전 게시됨 릴리스 정보
1.0.0.0