integer_partitions(n,count)
Version 1.0.0.0 (2.78 KB) by
Igor Peretta
Computes all partitions of a given nonnegative integer n.
A partition of a positive integer n, also called an integer partition, is a way of writing n as a sum of positive integers. Two sums that differ only in the order of their summands are considered the same partition (could be seen as a permutation of the partition). This function computes all partitions of a given nonnegative integer "n", restricted to "count" nonnegative integer summands.
Cite As
Igor Peretta (2026). integer_partitions(n,count) (https://se.mathworks.com/matlabcentral/fileexchange/51123-integer_partitions-n-count), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Scientific Data > HDF5 Files > Low-Level Functions > Datatype (H5T) > Atomic Data Type Properties >
Find more on Atomic Data Type Properties in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
