SUBMREDUCE - submatrix reduce
Y = SUBMREDUCE(X,R,C,F) treats the 2D matrix X as consisting of submatrices of RxC rows and columns, and returns a smaller matrix with one value derived from each of these submatrices.
That value is obtained by applying the function pointed to by F to a matrix where the all the submatrix values have been arranged in columns - i.e. the standard syntax for functions such as MIN() and SUM().
Example: if X = [1 2 3 4; 5 6 7 8] then SUBMREDUCE(X,2,2,@sum) = [14 22].
Zitieren als
Dan Ellis (2025). SUBMREDUCE - submatrix reduce (https://www.mathworks.com/matlabcentral/fileexchange/16206-submreduce-submatrix-reduce), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |