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.
Cita come
Sky Sartorius (2026). cosspace (https://it.mathworks.com/matlabcentral/fileexchange/28337-cosspace), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato da: cosspace
Ispirato: sinspace, LINSPACE3: linearly spaced vector defined by three points, CORE: Conceptual Optimization of Rotorcraft Environment
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.