Creating vector using rand() function in a range
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
aliza mustafa
am 18 Aug. 2022
Kommentiert: aliza mustafa
am 18 Aug. 2022
Hi,
Can you please help me how to generate a (1x10) vector using rand() function, with values between (0,7)? I got to do it with randi() function like this:
A = randi([0 7],1,10)
But I want to do it with rand() function instead of randi(). Any help will be really apprecited. Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!