Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: subsindex error
Date: Sun, 8 Nov 2009 04:58:01 +0000 (UTC)
Organization: ucf
Lines: 25
Message-ID: <hd5j4p$5mu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1257656281 5854 172.30.248.37 (8 Nov 2009 04:58:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 04:58:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1966085
Xref: news.mathworks.com comp.soft-sys.matlab:583291


function [c,c_cnt] = kmeans(pts, nc)

mn = min(pts);
mx = max(pts);

[length, dim] = size(pts);

c_cnt = zeros(nc,dim);
.
..
...
....


return

when i try to run in debug mode. matlab is giving this error

??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'struct'.

Can anyone please tell me whats the problem?

Regards
Pramod