help-octave
[Top][All Lists]
Advanced

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

Re: logarithmic steps in for


From: Lorenzo
Subject: Re: logarithmic steps in for
Date: Thu, 10 Jan 2002 11:15:06 +0100

Just a question which maybe can turn to be useful to Nacho and to anyone 
interested.

I usually prefer to LOGSPACE the form

        base .^ [usual linear range]

or
        base .^ linspace

This is exactly what LOGSPACE does (except for controlling input values), but 
it allows base != 10 and in my opinion gives you better understanding of what 
you are doing.

Which are the drawbacks against doing this?

Lorenzo

BTW. Probably Ignacio wanted 70 steps (10 in each group...), so:

        logspace(-5,2,70)

or

        10.^[ -5 : .1 : 2 ]


09/01/02 23.04.37, Paul Kienzle <address@hidden> ha scritto:

>for x=logspace(-5,2,10)
>       ...
>
>Paul Kienzle
>address@hidden
>
>On Wed, Jan 09, 2002 at 03:12:00PM -0600, Ignacio Mas Ivars wrote:
>> 
>> 
>> Hi!!
>> 
>>      Is there a way to define a range of values for a 'for' loop with 
>> logarithmic 
>> steps? I mean, I have a range from 10e-5 to 100 and I want to take ten 
>> points 
>> in each group 10e-5 - 10e-4 - 10e-3 ...and so on...
>> 
>> Tanks in advance, please Cc: to myself!!
>> 
>> /Nacho
>> 
>> -- 
>> Department of Microelectronics and Information Technology
>> Royal Institute of Technology
>> http://www.it.kth.se/~nacho/    Tf:+46 (0)8 790 4255
>> 
>> 
>> 
>> -------------------------------------------------------------
>> Octave is freely available under the terms of the GNU GPL.
>> 
>> Octave's home on the web:  http://www.octave.org
>> How to fund new projects:  http://www.octave.org/funding.html
>> Subscription information:  http://www.octave.org/archive.html
>> -------------------------------------------------------------
>> 
>
>
>
>-------------------------------------------------------------
>Octave is freely available under the terms of the GNU GPL.
>
>Octave's home on the web:  http://www.octave.org
>How to fund new projects:  http://www.octave.org/funding.html
>Subscription information:  http://www.octave.org/archive.html
>-------------------------------------------------------------
>
>





-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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