No BSD License  

Highlights from
Dimension Expansion Toolbox

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 8.8 KB File ID: #8842

Dimension Expansion Toolbox

by Ingo Löhken

 

27 Oct 2005 (Updated 28 Oct 2005)

Expands functions to usage of N dimensional inputs.

| Watch this File

File Information
Description

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]

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
10 Aug 2006 Ed Murphy

calls missing isnat function.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
operating Ingo Löhken 22 Oct 2008 08:04:58
dimension Ingo Löhken 22 Oct 2008 08:04:58
1d array Ingo Löhken 22 Oct 2008 08:04:58
abstraction Ingo Löhken 22 Oct 2008 08:04:58
function Ingo Löhken 22 Oct 2008 08:04:58
expansion Ingo Löhken 22 Oct 2008 08:04:58

Contact us at files@mathworks.com