Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7435707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:07:10+00:00 2026-05-29T10:07:10+00:00

I’m trying to figure out the difference between histograms made on Matlab (using the

  • 0

I’m trying to figure out the difference between histograms made on Matlab (using the function ‘hist’ and ‘histc” and one made on excel2007.

The following is my data:

92.75408677
94.30203471
39.29203084
39.69600648
169.599791
47.69892422
55.70547521
45.68462703
47.87167045
40.44786332
166.2861124
113.4816594
100.4448781
47.82555238

I use the following bins

0
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180

Here are the results of the different frequencies using the different softwares and different functions:

bins    Histc-Matlab    Excel   Hist-Matlab
    0   0   0   0
    10  0   0   0
    20  0   0   0
    30  2   0   0
    40  5   2   3
    50  1   5   4
    60  0   1   1
    70  0   0   0
    80  0   0   0
    90  2   0   2
    100 1   2   1
    110 1   1   1
    120 0   1   0
    130 0   0   0
    140 0   0   0
    150 0   0   0
    160 2   0   0
    170 0   2   2
    180 0   0   0

I’m confused why are they all different? Can anyone explain me that?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:07:11+00:00Added an answer on May 29, 2026 at 10:07 am

    Just info from manuals:

    n = hist(Y,x) where x is a vector, returns the distribution of Y among length(x) bins with centers specified by x.

    n = histc(x,edges) counts the number of values in vector x that fall between the elements in the edges vector (which must contain monotonically non-decreasing values). n is a length(edges) vector containing these counts. n(k) counts the value x(i) if edges(k) <= x(i) < edges(k+1). The last bin counts any values of x that match edges(end).

    Excel counts the number of data points in each data bin. A data point is included in a particular data bin if the number is greater than the lowest bound and equal to or less than the greater bound for the data bin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.