Hello all, I have a very basic problem. I have a long array (around a thousand cells long) and I need to graph the frequency of each unique number that appears in the array to achieve a Gaussian distribution. Is there any way to do this without using tabulate?
Thanks in advance.

 채택된 답변

Birdman
Birdman 2018년 1월 8일
편집: Birdman 2018년 1월 8일

1 개 추천

Use histogram. For instance, simple approach:
V=randi([1 10],1,100);
histogram(V);xlabel('Numbers');ylabel('Frequency');

추가 답변 (0개)

카테고리

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

질문:

2018년 1월 8일

편집:

2018년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by