COSSPACE will generate a vector of N points distributed via cosine spacing at equal angular increments.
This method of spacing concentrates more points at the beginning and end of the vector while having fewer in the middle.
Compare to LINSPACE and LOGSPACE in MATLAB.
Cite As
Cole Stephens (2024). cosspace (https://www.mathworks.com/matlabcentral/fileexchange/5491-cosspace), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: cosspace, Animation, CB2: Airfoil Optimization with GUI
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.