maxMinC.zip
バージョン 1.2.0.0 (762 Bytes) 作成者:
Valerio Biscione
find the largest (or smallest) element in any cell array, nested or not
%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://jp.mathworks.com/matlabcentral/fileexchange/46467-maxminc-zip), MATLAB Central File Exchange. 取得日: .
MATLAB リリースの互換性
作成:
R2014a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Data Types についてさらに検索
タグ
謝辞
ヒントを与えたファイル: Quantile Probability Plot
