File Exchange

image thumbnail


version 1.3 (1.99 KB) by

All pairs intersecting on k-1 tuples from all possible k-tuples of n objects

1 Download


View License

I can''t find a better name. It seems the function can be used to build Fermionic Galerkin matrices.

Comments and Ratings (2)

Jos (10584)

Jos (10584) (view profile)

Nice recursive algorithm! You might be interested in my implementation for nchoose2:


Loginatorist (view profile)

There is no mention of the need for MERGESA other than the error message I see when trying to run the file.

Other than that, this is a nice recursive solution to the combinations without replacement problem.



FEX requirement (try again)


Add MERGESA (FEX #28930) in the requirement

MATLAB Release
MATLAB 7.11 (R2010b)

Inspired by: Merge sorted arrays

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today