function D = selx( A, first, last )
    % D = SELX( A, FIRST, LAST )
    %
    % Create a new dataset from dataset A containing element FIRST through
    % LAST.
    D = selectx( A, [first : last] );
    