Exclude elements from array or matrix

버전 1.0.0.0 (999 Bytes) 작성자: Shoaibur Rahman
Exclude elements from array, and rows or columns from matrix
다운로드 수: 290
업데이트 날짜: 2016/1/28

라이선스 보기

Y = exclude(X,indx,rc) takes an input X, which can be eithr an array or 2D matrix.
indx is the index of the row(s) or column(s) or elements to omit from the matrix or array.
rc is used to define whether the rows or columns to be excluded. For row exclusion use: 'row' and for column exlusion use: 'col' or 'column'. If nothing is defined then the default 'col' is set automatically. However, rc will automatically be set to 'col' or 'row' if X is a row or column vector, respectively.

Example 1
x = 1:10
y1 = exclude(x,[1 5])
y2 = exclude(x',5)

Example 2
X = magic(3)
y1 = exclude(X,2,'row')
y2 = exclude(X,2,'col')

인용 양식

Shoaibur Rahman (2026). Exclude elements from array or matrix (https://kr.mathworks.com/matlabcentral/fileexchange/55132-exclude-elements-from-array-or-matrix), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Matrix Indexing에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0