Thank you so much for answering the question.
Taking it further.
Here the Ratio is (Ratio = MIN_Second_surface/MAX_Second_surface)
Now the MIN_Second_surface and MAX_Second_surface is the count of values with in a single bin of histogram2.
Hence, if the MAX_Second_surface = 100 and MIN_Second_surface = 100 i.e every bin has 100 values in it.Then the Ratio of them will be 1.
Hence, this is the condition to take variables(V) such that every bin must have equal values in it.
value in histogram2 was found by h.values and W.values where h and W is the place were histogram2 was created.
h = histogram2(Angle4x,Angle4y,'DisplayStyle','tile','ShowEmptyBins','on');
W = histogram2(Angle2x,Angle2y,'DisplayStyle','tile','ShowEmptyBins','on')
Also in our case the idle value in each bin should be 100 for max and min surface.
Also the bins size can be made equal using
Xedges = [-30:1:30];
Yedges = [-30:1:30];
h = histogram2(x,y,Xedges,Yedges)
Hence I have request to please setting the variable in a way that Ration is 1 or around it.