cosspace (Scripts) Publisher's description
from Sky Sartorius
Utility function operates with no loops
Utility function operates with no loops, so is of comparable speed to LINSPACE.
Using the same syntax as LINSPACE, COSSPACE makes a cosine spaced vector, clustering the elements toward the endpoints with greater spacing in the middle:
Given negative vector length, COSSPACE returns an inverse cosine spaced vector with elements sparse toward the endpoints:
An optional input in addition to the endpoints and the number of elements lets you choose the intensity of the clustering.
System Requirements:MATLAB 7.5 (R2007b)
Program Release Status: Major Update
Program Install Support: Install and Uninstall