To find histogram of two variables
조회 수: 10(최근 30일)
표시 이전 댓글
Hi,
I need to find Histogram properties of two variable x and y and to store it in a separate cell array a. I have used below code but, I am getting only the histogram properties of y, Kindly help me with this. Thanks in advance.
x = rand(1000,1);
y = rand(1500,1);
a = histogram(x);
b = histogram(y);
c = {a;b};
댓글 수: 0
채택된 답변
KSSV
2022년 7월 13일
x = rand(1000,1);
y = rand(1500,1);
[N{1},edges{1}] = histcounts(x);
[N{2},edges{2}] = histcounts(y);
댓글 수: 1
추가 답변(0개)
참고 항목
범주
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!