How can we plot a random number ina bar graph

답변 (1개)

Walter Roberson
Walter Roberson 2020년 10월 4일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2020년 10월 4일

답변:

2020년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by