sinspace
Utility function operates with no loops, so is of comparable speed to LINSPACE.
Using the same syntax as LINSPACE, SINSPACE makes a sine-spaced vector, clustering the elements toward the endpoint:
|_____|_____|____|___|__|_||
Given negative vector length, SINSPACE clusters points toward the beginning rather than the end of the vector.
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 (2025). sinspace (https://www.mathworks.com/matlabcentral/fileexchange/28358-sinspace), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : cosspace
A inspiré : 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!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0.0 | Simplified algorithm; clustering factor added |
||
1.0.0.0 |