Frequency Histogram of the output data

1 view (last 30 days)
yu sh
yu sh on 14 Apr 2016
Hi everyone, I have the following result and want to plot the histogram between 'A vs frequency', please guide
A = [ 3 1 3 1 2]
I want my code to compute the frequency of the data in A like 3 (2 times), 1 (2 times) and 2 (once) and plot the histogram accordingly. Thanks in advance.

Answers (0)

Community Treasure Hunt

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

Start Hunting!