Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
funspace generates a vector of functionally spaced points according to a user-supplied density function. The function first evaluates the density over a linearly spaced parameter interval, computes the cumulative distribution function (CDF), and then distributes points based on the CDF to produce a non-uniform grid.
This generalizes linspace by allowing the spacing between points to be controlled by an arbitrary function, with higher function values producing regions of higher point density. Optional arguments allow specifying the number of points and the parameter interval over which the function is evaluated.
funspace is particularly useful for constructing nonuniform 1D grids, including multiple high-density regions, which are not easily achievable with linspace or logspace. It ensures that the resulting points cover the desired output interval while respecting the relative densities defined by the function handle.
Citar como
Morgan (2026). funspace (https://es.mathworks.com/matlabcentral/fileexchange/182876-funspace), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: Non-linearly Spaced Vector Generator
Información general
- Versión 1.1.0 (1,67 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión desde R2019b
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
