Chebyshev Spacing, which is simply a kind of equal spacing around a circle, then projection onto the horizontal bisector of the circle
Basil C. (2021). Chebyshev Point Spacing (https://www.mathworks.com/matlabcentral/fileexchange/88416-chebyshev-point-spacing), MATLAB Central File Exchange. Retrieved .
Note that the loop is superfluous as this simple formula can be trivially vectorized:
xx = (UL+LL)/2 - (UL-LL)/2 * cos((2*(1:n)-1)*pi/(2*n))
Note that everyone has anonymous functions, but not everyone has the symbolic toolbox.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!