Filter löschen
Filter löschen

Histogram of cell array ?

15 Ansichten (letzte 30 Tage)
Jason
Jason am 10 Aug. 2011
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?

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 10 Aug. 2011
% Ain - 4-D cell array
hist(cell2mat(cellfun(@(x)x(:),Ain(:),'un',0)))
  4 Kommentare
Andrei Bobrov
Andrei Bobrov am 10 Aug. 2011
yes,
eg:
>> cell2mat([{};{[2;3;4]}])
ans =
2
3
4
Jason
Jason am 10 Aug. 2011
Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by