cosspace

版本 1.2.0.0 (1.5 KB) 作者: Sky Sartorius
Generates cosine- or acos-spaced vector with elements clustered or sparse at the endpoints
948.0 次下载
更新时间 2010/10/12

查看许可证

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.

引用格式

Sky Sartorius (2024). cosspace (https://www.mathworks.com/matlabcentral/fileexchange/28337-cosspace), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

improved algorithm; added optional weighting for less intense clustering

1.1.0.0

added inverse cosing spacing

1.0.0.0