Linear_Rand_Comb_Fi​xed_Sum

A random integer row vector of specified length, elements are bounded by lower and upper limits, while elements add up a target value
1 Download
Aktualisiert 27. Sep 2020

Lizenz anzeigen

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

Zitieren als

Biswanath Mahanty (2024). Linear_Rand_Comb_Fixed_Sum (https://www.mathworks.com/matlabcentral/fileexchange/80533-linear_rand_comb_fixed_sum), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2020b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0