%% Calculate Real Root of Negative Number
% Find the real cube root of -27.

nthroot(-27, 3)

%
% For comparison, also calculate (-27)^(1/3).

(-27)^(1/3)

% The result is the complex cube root of -27.
% Copyright 2012 The MathWorks, Inc.