| MATLAB Function Reference | ![]() |
Syntax
Description
y = nthroot(X, n) returns the real nth root of the elements of X. Both X and n must be real and n must be a scalar. If X has negative entries, n must be an odd integer.
Example
returns the real cube root of -2.
returns a complex cube root of -2.
See Also
| now | null | ![]() |
© 1994-2005 The MathWorks, Inc.