Non-linearly Spaced Vector Generator

버전 1.1.0.0 (2.64 KB) 작성자: Connor Ott
Generates a vector of elements with exponential, cosine, or logarithmic spacing.
다운로드 수: 1.2K
업데이트 날짜: 2017/10/24

라이선스 보기

nonLinspace(mn, mx, num, spacetype) returns a vector of non-linearly
spaced elements based on spacing specified by spacetype. This function
was made in order to provide domains for relationships or functions
which require greater resolution in some portions of the domain than
others.
An example would be the vortex panel method for determining pressure
distribution over an airfoil. Since the leading and trailing edges of the
airfoil see greater pressure gradients, more resolution is required in
these places as opposed to the middle of the airfoil, so cosine spacing
would be optimal for for determining panel boundary point distribution.
nonLinVec = nonLinspace(mn, mx, num, 'exp10') returns a vector of
elements with smaller spacing at the beginning of the vector and greater
spacing at the end of the vector based on the curve y = 10^x.

nonLinVec = nonLinspace(mn, mx, num, 'cos') returns a vector of elements
with smaller spacing at the beginning and end of the vector, and greater
spacing in the middle based on the curve y = 1/2(1-cos(x)).

nonLinVec = nonLinspace(mn, mx, num, 'log10') returns a vector of
elements with greater spacing at the beginning of the vector and smaller
spacing at the end of the vector.

Inputs:
mn - The minimum value in the vector.
mx - The maximum value in the vector.
num - The number of elements in the vector.
spacetype - Specifies the type of spacing needed.

Outputs:
nonLinVec - A vector consisting of elements with spacing specified
by spacetype.

Created: 10/12/17 - Connor Ott
Last Modified: 10/23/17 - Connor Ott

인용 양식

Connor Ott (2024). Non-linearly Spaced Vector Generator (https://www.mathworks.com/matlabcentral/fileexchange/64831-non-linearly-spaced-vector-generator), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Updated text in description and uploaded photo for function.

1.0.0.0