Histogram of cell array ?

26 次查看(过去 30 天)
Jason
Jason 2011-8-10
I have a 4-D cell containing a lot of values (from simulation). I wish to plot a histogram representing all those values. How do I do so?

采纳的回答

Andrei Bobrov
Andrei Bobrov 2011-8-10
% Ain - 4-D cell array
hist(cell2mat(cellfun(@(x)x(:),Ain(:),'un',0)))
  4 个评论
Andrei Bobrov
Andrei Bobrov 2011-8-10
yes,
eg:
>> cell2mat([{};{[2;3;4]}])
ans =
2
3
4

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by