image thumbnail

All Permutations of integers with sum criteria

version 1.5.01.0 (2.69 KB) by Bruno Luong
All Pernutations of integers with sum criteria

4.4K Downloads

Updated 01 Aug 2020

View License

This function provides all combinations of integer vector that must verify a criteria on the sum.

Supported criteria is
sum(v) == L1
sum(v) <= L1
sum(v) < L1

Cite As

Bruno Luong (2021). All Permutations of integers with sum criteria (https://www.mathworks.com/matlabcentral/fileexchange/17818-all-permutations-of-integers-with-sum-criteria), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!