Code covered by the BSD License  

Highlights from
ChooseK

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.99 KB File ID: #29893

ChooseK

by

 

03 Jan 2011 (Updated )

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

| Watch this File

File Information
Description

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

Acknowledgements

Merge Sorted Arrays inspired this file.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
04 Jan 2011 Jos (10584)

Nice recursive algorithm! You might be interested in my implementation for nchoose2: http://www.mathworks.com/matlabcentral/fileexchange/20144-nchoose2-v2-1-jun-2008

03 Jan 2011 Matt Fig

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
03 Jan 2011

Add MERGESA (FEX #28930) in the requirement

04 Jan 2011

FEX requirement (try again)

Contact us