funspace

버전 1.1.0 (1.67 KB) 작성자: Morgan
Generates functionally spaced vectors based on a density function
다운로드 수: 6
업데이트 날짜: 2025/12/27

라이선스 보기

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.

인용 양식

Morgan (2026). funspace (https://kr.mathworks.com/matlabcentral/fileexchange/182876-funspace), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2025b
R2019b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

도움 받은 파일: Non-linearly Spaced Vector Generator

버전 게시됨 릴리스 정보
1.1.0

funspace now generates nonuniform grids based on a user-supplied density function, allowing arbitrary clustering of points, including multiple high-density regions.

1.0.0