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 개 추천

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2016년 6월 29일

댓글:

2016년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by