alln and anyn: N-D "all" and "any" function

버전 1.0.0.0 (2.42 KB) 작성자: Whyjay Zheng
Improved version of the built-in "all" and "any" fuction, designed for higher-dimension input
다운로드 수: 28
업데이트 날짜: 2016/8/13

라이선스 보기

ALLN(A) is similar to all(A), but always returns a single value which determines if all matrix elements are nonzero. When A is a 2-D or higher-dimension matrix, it will return the same result as all(reshape(A, 1, [])).
ANYN(A) is similar to any(A), but always returns a single value which determines if any matrix elements are nonzero. When A is a 2-D or higher-dimension matrix, it will return the same result as any(reshape(A, 1, [])).
Both functions are useful when A can be either scalar, vector or matrix in your scripts.

인용 양식

Whyjay Zheng (2024). alln and anyn: N-D "all" and "any" function (https://www.mathworks.com/matlabcentral/fileexchange/58689-alln-and-anyn-n-d-all-and-any-function), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Updated description.