How can we plot a random number ina bar graph

Antworten (1)

Walter Roberson
Walter Roberson am 4 Okt. 2020

0 Stimmen

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.

Kategorien

Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Gefragt:

am 4 Okt. 2020

Beantwortet:

am 4 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by