Geometrically spaced vector
by Gus Brown
30 Jan 2008
(Updated 16 Apr 2008)
Code covered by the BSD License
Create a geometrically spaced vector where each subsequent step is G times bigger than the previous
Download Now
|
Watch this File
|
| File Information |
| Description |
Matlab supplies the functions linspace and logspace to generate vectors. This is a alternate/additional spacing algorithm to add to the list.
Geometric spacing in this case is defined as points spaced in such a way that each subsequent step is G times bigger than the previous one.
GEOSPACE(X1, X2) generates a row vector of 100 linearly equally spaced points between X1 and X2.
GEOSPACE(X1, X2, N) generates N linearly spaced points between X1 and X2. If N<2 then X2 is returned.
GEOSPACE(X1, X2, N, G) generates N points between X1 and X2 with a spacing defined by G. Each step is G times bigger than the previous step. |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 30 Jan 2008 |
Dimitri Shvorob
|
|
|
| 30 Jan 2008 |
Gus Brown
|
|
|
| 22 Dec 2009 |
Matt Fig
|
|
|
| Updates |
| 07 Feb 2008 |
Changed the summary wording to fit the 100 character limit. |
| 11 Feb 2008 |
Added an example to the help. |
| 16 Apr 2008 |
Description change |
|
Contact us at files@mathworks.com