Generalized Array Operations

Computes generalized array operations by expanding singleton dimensions.
2.5K descargas
Actualizado 15 Mar 2006

Ver licencia

Computes functions of arrays where the singleton dimensions of each have been expanded to be the size of the other, without actually copying any data.

For example,

x = rand(4,3,1,2);
y = rand(4,1,5,2);
z = genop(@times,x,y);

size(z) will be [4 3 5 2].

Citar como

Douglas Schwarz (2024). Generalized Array Operations (https://www.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14SP2
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Operators and Elementary Operations en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: bsxfun substitute

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

Modified so it works with a function returning logical.