Generalized Array Operations

版本 1.0.0.0 (2.6 KB) 作者: Douglas Schwarz
Computes generalized array operations by expanding singleton dimensions.
2.5K 次下载
更新时间 2006/3/15

查看许可证

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].

引用格式

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

MATLAB 版本兼容性
创建方式 R14SP2
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Operators and Elementary Operations 的更多信息
致谢

启发作品: bsxfun substitute

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Modified so it works with a function returning logical.