Home > marl > lib > lin2ndi.m

lin2ndi

PURPOSE ^

LIN2NDI Useful for generating indices of N-D arrays.

SYNOPSIS ^

function ndi = lin2ndi(lin,dims)

DESCRIPTION ^

LIN2NDI Useful for generating indices of N-D arrays.
        LIN2NDI(N,BASE) returns the representation of N as a vector
        in the bases given by the elements of BASE. (Reverse operation
        to NDI2LIN.)

        Example:
            A = zeros(2,2,3,4); 
            A(1,2,3,4) = 1;
            ndi = lin2ndi(find(A),size(A))

        See also NDI2LIN.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005