フィルターのクリア

Histogram of cell array ?

17 ビュー (過去 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
Jason
Jason 2011 年 8 月 10 日
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by