Reputation: 4354
I have a cellarray of dimension 100x1 of integer elements. How can I plot a histogram from this data?
Upvotes: 3
Views: 153
Reputation: 20915
Use cell2mat
to convert to regular matrix first, and them use hist
command
hist(cell2mat({1,2,3,10,10,10}))
Upvotes: 2