randi size inputs not scalar issue?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have an issue when I want a variable length I decided to give two inputs max_length and min_length. I then chose the length in the loop by choosing a random integer between these two. Although when I run it says:
*Error using randi
Size inputs must be scalar.
Could anyone tell me what the problem is.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 5월 1일
편집: Azzi Abdelmalek
2014년 5월 1일
randi(length(characters ), 1, (passwd_length-1))
passwd_length-1 should be a scalar not a vector
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!