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

版本 1.0.0.0 (2.4 KB) 作者: Whyjay Zheng
Improved version of the built-in "all" and "any" fuction, designed for higher-dimension input
28.0 次下载
更新时间 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.