File Exchange

image thumbnail

ChooseK

version 1.3 (1.99 KB) by

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

1 Download

Updated

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: http://www.mathworks.com/matlabcentral/fileexchange/20144-nchoose2-v2-1-jun-2008

Loginatorist

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.

Updates

1.3

FEX requirement (try again)

1.2

Add MERGESA (FEX #28930) in the requirement

MATLAB Release
MATLAB 7.11 (R2010b)
Acknowledgements

Inspired by: Merge sorted arrays

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

» Watch video