Path: news.mathworks.com!not-for-mail
From: "Kenneth Eaton" <Kenneth.dot.Eaton@cchmc.dot.org>
Newsgroups: comp.soft-sys.matlab
Subject: Re: need help
Date: Wed, 7 Jan 2009 03:59:02 +0000 (UTC)
Organization: Cincinnati Children's Hospital Research Center
Lines: 7
Message-ID: <gk19a6$kr8$1@fred.mathworks.com>
References: <gk18ut$k3$1@fred.mathworks.com>
Reply-To: "Kenneth Eaton" <Kenneth.dot.Eaton@cchmc.dot.org>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231300742 21352 172.30.248.37 (7 Jan 2009 03:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Jan 2009 03:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1165924
Xref: news.mathworks.com comp.soft-sys.matlab:510154

"trying hope" <withhope2007@hotmail.com> wrote in message <gk18ut$k3$1@fred.mathworks.com>...
> Hi, I'm new to matlab. I try to calculate (-4)^(1/3). I got an imaginary answer. Could anyone told me how to express (-4)^(1/3) in matlab to get a correct answer?Thanks a lot.

Try using the function NTHROOT.

hth,
Ken