Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: imag and real don't work
Date: Thu, 24 Jul 2008 12:37:03 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 12
Message-ID: <g69t1f$1h4$1@fred.mathworks.com>
References: <g69nj3$9he$1@fred.mathworks.com> <g69nqj$bg1$1@fred.mathworks.com> <g69o7t$evs$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216903023 1572 172.30.248.38 (24 Jul 2008 12:37:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 12:37:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:481504



real = 1:4;
real(3+2*i)
??? Subscript indices must either be real positive integers
or logicals.

clear real
real(3+2*i)

ans =

     3