maxMinC.zip

版本 1.2.0.0 (762 字节) 作者: Valerio Biscione
find the largest (or smallest) element in any cell array, nested or not
192.0 次下载
更新时间 2014/5/6

查看许可证

%find the largest/smallest element among all the elements in a cell array. The cell array can have matrix or a cell array or any combination of these two. The functions use recursion.
%there is a maxC and a minC in the zip file.
%EXAMPLE
%f=@() randi(100) %just to type faster the following
%a={{{ [f() f(); f() f()]} {f()} [f() f() f()]}; [f() f() f()]};
%maxC(a)
%notice some difference with the normal max/min, even with simple matrix:
%a=[1 2 3; 4 5 6];
%max(a)
%ans= 4 5 6
%maxC(a)= 6, as expected.

引用格式

Valerio Biscione (2026). maxMinC.zip (https://ww2.mathworks.cn/matlabcentral/fileexchange/46467-maxminc-zip), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Types 的更多信息
致谢

启发作品: Quantile Probability Plot

版本 已发布 发行说明
1.2.0.0

little mistake in the description, max(a) instead of maxC(a)

1.1.0.0

grammar

1.0.0.0