Date: Jun 1, 2012 11:46 AM
Author: Ilya Narsky
Subject: Re: ClassificationKNN.fit

http://www.mathworks.com/help/toolbox/stats/rn/bqolq3d-1_1.html

"besbesmany besbesmany" <besbesmany@yahoo.com> wrote in message
news:jqamos$kql$1@newscl01ah.mathworks.com...
> is the last version of mtalab 2012b or 2012a
> "Ilya Narsky" <inarsky@mathworks.com> wrote in message
> <jqam3e$hrp$1@newscl01ah.mathworks.com>...

>> "besbesmany besbesmany" <besbesmany@yahoo.com> wrote in message
>> news:jqal4k$dfq$1@newscl01ah.mathworks.com...

>> > I'm trying to run ClassificationKNN.fit
>> >
>> > mdl = ClassificationKNN.fit(tr,label,'NumNeighbors',5,'kfold',5);
>> > [label,score,cost] = predict(mdl,test);
>> >
>> > but it gives me error
>> > ??? Undefined variable "ClassificationKNN" or class
>> > "ClassificationKNN.fit".
>> >
>> > i'm using matlab 2011a
>> >

>>
>> ClassificationKNN was introduced in 2012a.

>