COMPLEXROOTS

COMPLEXROOTS(X, N) returns all (N) complex Nth roots of X.

이 제출물을 팔로우합니다

R = COMPLEXROOTS(X,N) returns all (N) complex Nth roots of X.
X can be a real or a complex number, or an array of such numbers; N must be a natural number.
If X is scalar, COMPLEXROOTS(X, N) is a 1*N vector
with all complex Nth roots of X.
If X is a vector of length M, COMPLEXROOTS(X, N) is a M*N matrix
with all complex Nth roots of X along the second dimension.
If X is an array of dimension D, COMPLEXROOTS(X, N) is an array
of dimension D+1 with all complex Nth roots of the elements of X
along the last dimension.
To cross-check the result: complexroots(x,n).^n
To plot the result in the complex plane (for scalar X):
plot(real(r),imag(r),'.'), a=1.2*abs(r(1)); axis([-a a -a a]),grid on

인용 양식

Bernhard Stroebel (2026). COMPLEXROOTS (https://kr.mathworks.com/matlabcentral/fileexchange/29660-complexroots), MATLAB Central File Exchange. 검색 날짜: .

카테고리

Help CenterMATLAB Answers에서 Data Distribution Plots에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.2.0.0

Now completed with two examples and a check for correct input.

1.1.0.0

no more singleton dimensions for scalar or vector X

1.0.0.0