You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function generates a random integer row vector of specified length, where each element
is bounded by lower limit and upper limit, while adding up to a fixed sum.
% m - The specified target sum
% n - The length of desired row vector (i.e. the number of elements)
% ul - the upper limit of the values permitted in the desired vector
% ll - the lower limit of the values permitted in the desired vector
Cite As
Biswanath Mahanty (2026). Linear_Rand_Comb_Fixed_Sum (https://in.mathworks.com/matlabcentral/fileexchange/80533-linear_rand_comb_fixed_sum), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.42 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
