maxMinC.zip
%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.
Citar como
Valerio Biscione (2024). maxMinC.zip (https://www.mathworks.com/matlabcentral/fileexchange/46467-maxminc-zip), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: Quantile Probability Plot
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.