Generalized Array Operations
Version 1.0.0.0 (2,63 KB) von
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].
Zitieren als
Douglas Schwarz (2024). Generalized Array Operations (https://www.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R14SP2
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Operators and Elementary Operations finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: bsxfun substitute
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 | Modified so it works with a function returning logical. |