Question

In: Computer Science

One spss is the interval width the same thing as the bind width? If not how...

One spss is the interval width the same thing as the bind width? If not how do I edit bin width?

Solutions

Expert Solution

Hello,

You can use the doc histc function to edit the bin width.

Basic code for this is below. Hope you can refer from this.

    %# compute center of bins (used as x-coord for labels)

          bins = ( edges(1:end-1) + edges(2:end) ) / 2;

          %# histc

          [counts,binIdx] = histc(DATA, edges);

          counts(end-1) = sum(counts(end-1:end)); %# combine last two bins

          counts(end) = [];                        %#

   %         %# plot histogram

          bar(edges(1:end-1), counts, 'histc')

                      for c=1:numel(counts)

                          if counts(c)~=0

                              text(bins(c), counts(c)+0.3, num2str(counts(c)), 'FontWeight','bold', 'FontSize',8, ...

                                  'VerticalAlignment','bottom', 'HorizontalAlignment','center');

                          end

                      end

                      set(gca,'ylim',[0 max(counts)+1/10*(max(counts))]); %adjust ymax

          end

Thanks


Related Solutions

Are ‘law’ and ‘justice’ one and the same thing? Discuss.
Are ‘law’ and ‘justice’ one and the same thing? Discuss.
If the prediction interval obtained so wide. How could we reduce the width of the interval?
If the prediction interval obtained so wide. How could we reduce the width of the interval?
As the sample size INCREASES for computing a confidence interval, the width of the confidence interval...
As the sample size INCREASES for computing a confidence interval, the width of the confidence interval DECREASES. 12 When the population standard deviation sigma is assumed known, a confidence interval can assume NORMALITY of the SAMPLE MEAN if the sample size is greater than 30. 12 A SYMMETRIC histogram implies the plotted variable is NORMALLY distributed. 12 The goal when using confidence intervals is to have WIDE INTERVALS to be assured that the interval contains the population parameter. 12 A...
How can we know if the oxidant is strong or not,same thing for reductant?
How can we know if the oxidant is strong or not,same thing for reductant?
Are ‘law’ and ‘justice’ one and the same thing? Discuss. (300 words maximum) with referencing citation...
Are ‘law’ and ‘justice’ one and the same thing? Discuss. (300 words maximum) with referencing citation please
3. What is the width of 68% confidence interval in terms of standard deviation (How many...
3. What is the width of 68% confidence interval in terms of standard deviation (How many standard deviation is equivalent to the width of 68% confidence interval)? What about 95% and 99.7%?
3. What is the width of 68% confidence interval in terms of standard deviation (How many...
3. What is the width of 68% confidence interval in terms of standard deviation (How many standard deviation is equivalent to the width of 68% confidence interval)? What about 95% and 99.7%?
Areslavery and human trafficking the same thing? Can they be usedinterchangebly? How does slavery...
Are slavery and human trafficking the same thing? Can they be used interchangebly? How does slavery impact women and children specifically?
1. Discuss one thing that you feel should remain the same with the new health care...
1. Discuss one thing that you feel should remain the same with the new health care legislation that is expected from the current Administration, OR, discuss one change that you feel is greatly needed. Be sure to provide a solid rationale for what you believe should remain the same or what aspect of the legislation should change. 2. Discuss the concept of Managed Care Organizations (MCOs). What is the goal of an MCO? Briefly discuss one strategy that is used...
Are ‘law’ and ‘justice’ one and the same thing? Discuss. (300 words maximum) please attach referencing...
Are ‘law’ and ‘justice’ one and the same thing? Discuss. (300 words maximum) please attach referencing also.is should be based on australian laws.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT