Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
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.
Citation pour cette source
Sky Sartorius (2026). cosspace (https://fr.mathworks.com/matlabcentral/fileexchange/28337-cosspace), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : cosspace
A inspiré : sinspace, LINSPACE3: linearly spaced vector defined by three points, CORE: Conceptual Optimization of Rotorcraft Environment
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et MATLAB Answers
Informations générales
- Version 1.2.0.0 (1,5 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 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 |