COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Logarithmic Bins for Histogram

• Follow

```I need to do a histogram with logarithmically spaced bins.  The data ranges from 4.327e-24 and are as large as 4.924e-17.  How can I choose a good size for the smallest bin and then do the rest of the bins from there?  I imagine that I will be using histc because I have a clearly defined min and max value.

I hope to make this repeatable depending on the range of the data.  Thanks in advance for your help.

Israel
```
 0
Reply Israel 5/25/2010 3:54:04 AM

```Israel Johnson wrote:
> I need to do a histogram with logarithmically spaced bins.  The data
> ranges from 4.327e-24 and are as large as 4.924e-17.  How can I choose a
> good size for the smallest bin and then do the rest of the bins from
> there?  I imagine that I will be using histc because I have a clearly
> defined min and max value.

perhaps logspace() over the range?
```
 0
Reply Walter 5/25/2010 3:57:43 AM

```On May 25, 3:54=A0pm, "Israel Johnson" <mconvers...@yahoo.com> wrote:
> I need to do a histogram with logarithmically spaced bins. =A0The data ra=
nges from 4.327e-24 and are as large as 4.924e-17. =A0How can I choose a go=
od size for the smallest bin and then do the rest of the bins from there? =
=A0I imagine that I will be using histc because I have a clearly defined mi=
n and max value.
>
> I hope to make this repeatable depending on the range of the data. =A0Tha=
nks in advance for your help.
>
> Israel

help logspace
```
 0
Reply TideMan 5/25/2010 3:57:44 AM

2 Replies
951 Views

(page loaded in 0.049 seconds)

Similiar Articles:

7/23/2012 6:02:36 AM

 Reply: