Linear_Rand_Comb_Fi​xed_Sum

版本 1.0.0 (1.4 KB) 作者: Biswanath Mahanty
A random integer row vector of specified length, elements are bounded by lower and upper limits, while elements add up a target value
1.0 次下载
更新时间 2020/9/27

查看许可证

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0