help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create exponentially spaced vector


From: Stephen Montgomery-Smith
Subject: Re: How to create exponentially spaced vector
Date: Sat, 27 Apr 2013 11:52:42 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 04/27/2013 11:29 AM, nickecarlo wrote:
> How would I create an exponentially spaced vector using the following
> notation?
> 
> [a:b:c] where a would be some power of 2, b would increment the power and c
> the power of 2 I want to get to?

Is this what you want?

octave:3> 2.^ [log2(16):1:log2(128)]
ans =

    16    32    64   128




reply via email to

[Prev in Thread] Current Thread [Next in Thread]