www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CalculateRealRootofNegativeNumberExample.m
%% 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|.