how to generates random numbers ?

1 次查看(过去 30 天)
hello anyone know how to generate random number as N*1 vector but their summation should be specific number for example if this number is 5 the random numbers should be {3 0 2}or{1 2 1} or any combination that give summation of 5

采纳的回答

José-Luis
José-Luis 2016-6-29

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by