Generalized Array Operations

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 (2026). Generalized Array Operations (https://jp.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R14SP2
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersOperators and Elementary Operations についてさらに検索
謝辞

ヒントを与えたファイル: bsxfun substitute

バージョン 公開済み リリース ノート
1.0.0.0

Modified so it works with a function returning logical.