hypersphere / n-sphere

버전 1.1.0.0 (2.41 KB) 작성자: Michael Völker
Generate n-dimensional Ellipsoid or Sphere
다운로드 수: 763
업데이트 날짜: 2012/10/31

라이선스 보기

S = hypersphere( sz )
S = hypersphere( sz, 'fullOrVoid' )
S = hypersphere( sz, matSize )
S = hypersphere( sz, matSize, 'fullOrVoid' )

S is a logical array of size max( sz, matSize ) where "true" (or 1)
defines the points of an n-dimensional ellipsoid or sphere,
with n == length(sz).

The input "sz" defines the size of an ellipsoid:

To create a circle with diameter 101 points:
sz = [101 101 ]

For an ellipse with short axis of 39 points vertical and long axis of 101 points horizontal:
sz = [ 39 101 ]

For a 3D sphere with diameter 101 points:
sz = [101 101 101]

4D hypersphere with diameter 101 points
sz = [101 101 101 101 ]

==> sz may have any size and positive integer values


Use the flag 'void' (default) to have an empty object, e.g. only the line of a circle, or 'full' to have a filled object, e.g. a disc.

The parameter matSize:

You may want to embed the object into the centre of a larger array/matrix.
You can specify matSize the same way as the sz-input.
matSize must have equal length as sz and all( matSize >= sz ).

With sz = [30 1 30 30] and matSize = [100 100 100 100] you embed
a small 3D sphere into a larger 4D array.

인용 양식

Michael Völker (2024). hypersphere / n-sphere (https://www.mathworks.com/matlabcentral/fileexchange/38805-hypersphere-n-sphere), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Changed Screenshot

1.0.0.0