Generalized Array Operations
Versione 1.0.0.0 (2,63 KB) da
Douglas Schwarz
Computes generalized array operations by expanding singleton dimensions.
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].
Cita come
Douglas Schwarz (2024). Generalized Array Operations (https://www.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R14SP2
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Operators and Elementary Operations in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: bsxfun substitute
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | Modified so it works with a function returning logical. |