Generalized Array Operations
Version 1.0.0.0 (2,63 ko) par
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].
Citation pour cette source
Douglas Schwarz (2026). Generalized Array Operations (https://fr.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R14SP2
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Operators and Elementary Operations dans Help Center et MATLAB Answers
Tags
Remerciements
A inspiré : bsxfun substitute
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 | Modified so it works with a function returning logical. |
