comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to produce N members between a and b with a determined spacing?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to produce N members between a and b with a determined spacing? [message #68576 is a reply to message #68575] Mon, 16 November 2009 06:52 Go to previous messageGo to previous message
a.mozafari1211 is currently offline  a.mozafari1211
Messages: 16
Registered: February 2009
Junior Member
On Nov 16, 6:43 am, Steve Eddins <Steve.Edd...@mathworks.com> wrote:
> ali mozafari wrote:
>> Hi there
>> I need to produce N members between a and b with a determined spacing.
>> In MATLAB it is work like this:
>> Data=a:spacing:b
>> How can we do this in IDL?
>> Any help highly would be appreciated
>> A.
>
> If you specify both N and the spacing then you've overconstrained your
> problem.  The MATLAB syntax you gave spacing the spacing but not N.
> This MATLAB function call specifies N but not the spacing:
>
> Data = linspace(a, b, N);
>
> If you really want to specify both N and the spacing then the last
> element of Data might not be exactly b.
>
> Say which one you want and then the IDL folks here can tell you how to
> do it.
>
> ---
> Steve Eddinshttp://blogs.mathworks.com/steve/

Thank you David. How if we don’t know (b). I mean producing N numbers
with Spacing (s) and initial number (a).
A.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wohnwagen Gasschlauch
Next Topic: An Introduction

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:37:35 PDT 2025

Total time taken to generate the page: 0.79734 seconds