cosspace
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.
Citar como
Sky Sartorius (2024). cosspace (https://www.mathworks.com/matlabcentral/fileexchange/28337-cosspace), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: cosspace
Inspiración para: sinspace, LINSPACE3: linearly spaced vector defined by three points, CORE: Conceptual Optimization of Rotorcraft Environment
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.