[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: define range in octave

**From**: |
Aarti Gupta |

**Subject**: |
Re: define range in octave |

**Date**: |
Tue, 25 Jul 2006 17:43:23 -0400 |

I am trying to construct a histogram for a given data set. And I want my
bucket ranges as (0-5), (5-15), (15-25),(25-35),(35-45)
and since, there are not continous that after 5 I want 15 how can I do this
in octave?
Even I not able to get the marks for this in the x-axis.
How can I get the marks for this in the axes?
----- Original Message -----
From: "Jordi Gutierrez Hermoso" <address@hidden>
To: "Aarti Gupta" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, July 25, 2006 5:22 PM
Subject: Re: define range in octave
>* Hi.*
>
>* On 25/07/06, Aarti Gupta <address@hidden> wrote:*
>* > I want range as (0-5), (5-15), (15-25),(25-35), (35-45)*
>
>* I don't quite understand what you want. The colon operator will define*
>* a range for you, so that, e.g.*
>
>* octave:1> x = 1:10*
>* x =*
>
>* 1 2 3 4 5 6 7 8 9 10*
>
>* and you can specify a different step size, but the default is 1:*
>
>* octave:2> x = 1:pi/2:10*
>* x =*
>
>* 1.0000 2.5708 4.1416 5.7124 7.2832 8.8540*
>
>* Those are five different ranges you have there. The first one could be*
>* x=0:5, the next y = 5:15, and so on. What's the context? What are you*
>* trying to do?*
>
>* - Jordi G. H.*