rajan sthapit
rajan sthapit

Reputation: 4354

Plotting a histogram from cellvalues

I have a cellarray of dimension 100x1 of integer elements. How can I plot a histogram from this data?

Upvotes: 3

Views: 153

Answers (1)

Andrey Rubshtein
Andrey Rubshtein

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

Related Questions