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

  • SEARCH
  • Home
  • 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 8951193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:36:26+00:00 2026-06-15T13:36:26+00:00

I am trying to make a histogram in matlab. My data size is huge

  • 0

I am trying to make a histogram in matlab. My data size is huge (3.5 million), x and y data are the same size (both are 3.5 million)

My original data has 200,200,88 3D matrix, I reshaped it to 1 column
the code for this:

[dose , size] = Dose('C:\R1')
s = size(1)*size(2).size(3)
t = reshape(dose, s, [])

When I try the command hist(t), I got a 1 bar only.

My workspace is as the following:

dose   <200x200x88 double>
s      3520000
size   [200,200,88]
t      <3520000x1 double>

Could you tell me how to make a histogram with this data?

  • 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-06-15T13:36:27+00:00Added an answer on June 15, 2026 at 1:36 pm

    In order to get a single long vector from your 3D array you can use just the (:) operator. Try the following code:

    num_of_bins = 100 ; %change to whatever # you want
    hist(dose(:),linspace(min(dose(:)),max(dose(:)),num_of_bins));

    The hist will take only the relevant limits of dose (min to max) and you can control the # of bins at will. I’ve used linspace to create a linearly spaced bin vector, but this can be modified also to a different set of bins by assigning a different range vector.

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

Sidebar

Related Questions

I'm trying to make a histogram out of data in a file that looks
I'm trying make an entity with doctrine that has three associations with other entities
Trying to make a cross protocol, same domain request from https to http. I
Trying to make this function dynamic instead of static. This was the original code
I'm trying to make a histogram in [R], and the normal curve that describes
I am trying to make a histogram of density values and overlay that with
Okay so I am trying to make a histogram from a three dimensional array
I'm trying to make a histogram, and i've been doing some searches and trying
I'm trying to make a histogram of a vector using R. When I plot
I am working with nHibernate, and trying make sense of bag collections. My data

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.