How to divide 2D histogram into four quadrants

조회 수: 2 (최근 30일)
Sulochana S
Sulochana S 2020년 4월 6일
댓글: Sulochana S 2020년 4월 7일
I have plotted the 2D histogram between x,y.
Now anyone help me to divide the histogram into four equal quadrants.
I have attached the sample 2D histogram. i need to split using horizontal and vertical lines attached to the figure.
Thanks.
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2020년 4월 6일
Can you show us an example of the output you want?
Sulochana S
Sulochana S 2020년 4월 7일
Hi Thanks for your quick reply and valuable time
I am implementing the algorithm proposed in the paper.

댓글을 달려면 로그인하십시오.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 4월 6일
편집: KALYAN ACHARJYA 2020년 4월 6일
You can manualy insert the line as required
data=randi(100,[10,10]);
hist(data);
grid on;
hold on;
x_data=1:100;
y_data=repelem(2,length(x_data));
plot(x_data,y_data,'r','linewidth',2);
  댓글 수: 1
Sulochana S
Sulochana S 2020년 4월 7일
Hi Kalyan Acharya,
Thanks for your code and time.
I dont want to insert the line manually.
I am implementing the algorithm proposed in the paper (attached)
Thanks
Sulochana

댓글을 달려면 로그인하십시오.

카테고리

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