How can we plot a random number ina bar graph

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Oct. de 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.

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Preguntada:

el 4 de Oct. de 2020

Respondida:

el 4 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by