Path: news.mathworks.com!not-for-mail
From: "Sven " <sven.holcombe@gmail.deleteme.com>
Newsgroups: comp.soft-sys.matlab
Subject: Weighted linspace?
Date: Fri, 8 Aug 2008 17:25:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <g7hvhf$8lt$1@fred.mathworks.com>
Reply-To: "Sven " <sven.holcombe@gmail.deleteme.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1218216303 8893 172.30.248.37 (8 Aug 2008 17:25:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 8 Aug 2008 17:25:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1326470
Xref: news.mathworks.com comp.soft-sys.matlab:484529



Hi there,

I'm trying to create a slightly modified version of linspace.

Linspace returns n numbers between x1 and x2, with constant
spacing.

I want to get n numbers between x1 and x2, but I want the
spacing between numbers to increase/decrease constantly.

Ie, the spacing between output(2:3) should be 0.9 times the
spacing between output(1:2), and the spacing between
output(3:4) should be 0.9 times the spacing between
output(2:3), etc...

I'm pretty sure this can be done in some simple operation
that I just haven't figure out yet...
Any ideas?

Thanks,
Sven.