Dimension Expansion Toolbox

Expands functions to usage of N dimensional inputs.
ダウンロード: 601
更新 2016/4/8

ライセンスの表示

Listed below are some examples to demonstrate the power of the toolbox. For detailed usage please refer to the NDOP function in the toolbox.
(1) Expansion of SUM : Concept Study.
Y = ndop(@sum,X,DIM)

is equal to the usage of the common SUM function, but constitutes the concept the simplest way.

(2) Expansion of the DCT : First Usage.

Y = ndop(@dct,X,DIM,N)

expands the DCT to N dimensions, where DIM is the operating dimension, N the padding/truncating length and X the N-D array input.

(3) Exp. of INTERSECT : Binary Usage.

[C,AI,BI] = ndop(inf,@intersect,A,B,DIM)

is the INTERSECT function expanded for the usage of N-D arrays A,B, where DIM is the operating dimension.

(4) Demonstrating Trimlength Usage T,
by expanding the UNIQUE function

B = ndop(T,@unique,1,A,DIM);
A = [1,1,1;1,2,3]

(a) Maximum Trimlength T = inf
B = [1,NaN,NaN;1,2,3]

(b) Minimum Trimlength T = -inf
B = [1;1]

(c) Fixed Trimlength T = 2
B = [1,NaN;1,2]

引用

Ingo Löhken (2024). Dimension Expansion Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/8842-dimension-expansion-toolbox), MATLAB Central File Exchange. 取得済み .

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

Community Treasure Hunt

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

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

license
license