Code covered by the BSD License  

Highlights from
sinspace

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.47 KB File ID: #28358
image thumbnail

sinspace

by Sky Sartorius

 

02 Aug 2010 (Updated 13 Oct 2010)

Generates a sine-spaced vector with elements clustered at one of the two endpoints

| Watch this File

File Information
Description

Utility function operates with no loops, so is of comparable speed to LINSPACE.

Using the same syntax as LINSPACE, SINSPACE makes a sine-spaced vector, clustering the elements toward the endpoint:
|_____|_____|____|___|__|_||

Given negative vector length, SINSPACE clusters points toward the beginning rather than the end of the vector.

An optional input in addition to the endpoints and the number of elements lets you choose the intensity of the clustering.

Acknowledgements

Cosspace inspired this file.

This file inspired Core: Conceptual Optimization Of Rotorcraft Environment and Linspace3: Linearly Spaced Vector Defined By Three Points.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
clustered, clustering, distributed, distribution, linspace, logspace, miscellaneous, sine, spaced, spacing, utility, vector
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
13 Oct 2010

Simplified algorithm; clustering factor added

Contact us