cosspace

Generates cosine- or acos-spaced vector with elements clustered or sparse at the endpoints
ダウンロード: 956
更新 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 (2026). cosspace (https://jp.mathworks.com/matlabcentral/fileexchange/28337-cosspace), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCreating and Concatenating Matrices についてさらに検索
バージョン 公開済み リリース ノート
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