randi size inputs not scalar issue?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Giuseppe
am 1 Mai 2014
Bearbeitet: Giuseppe
am 1 Mai 2014
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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 1 Mai 2014
Bearbeitet: Azzi Abdelmalek
am 1 Mai 2014
randi(length(characters ), 1, (passwd_length-1))
passwd_length-1 should be a scalar not a vector
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!