Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Subscript indices must either be real positive integers or logicals.
Date: Sun, 13 Mar 2011 18:39:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <ilj309$451$1@fred.mathworks.com>
References: <ilj0a1$ci4$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1300041545 4257 172.30.248.35 (13 Mar 2011 18:39:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 13 Mar 2011 18:39:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:715551

Hi,

You might have a variable named cov. You should first get rid of it by

clear cov

and then you can take the covariance of X.

Best.