How can we plot a random number ina bar graph
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How we plot random 20000number between -5 to 10 in bar graph.
0 Commenti
Risposte (1)
Walter Roberson
il 4 Ott 2020
r = rand(1,20000) * 15 - 5; %random -5 exclusive to +10 exclusive
bar(r)
This assumes you are looking for continuous numbers. If you are looking for integers, then use randi() to generate the numbers.
0 Commenti
Vedere anche
Categorie
Scopri di più su Bar Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!