필터 지우기
필터 지우기

Histogram of cell array ?

조회 수: 15 (최근 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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by