From: beyaz on
Hi, I'm trying fisheriris on statistic toolbox. I make a decision tree and i want to test it with a test dataset.I try to do it with cost = test(t,'test',X,y) function.I import a dataset from sgi dataset page iris.test named dataset. but everytime i try, i get an error message.i import test number for X and label for y.Error message is "??? Undefined function or method 'isnan' for input arguments of type 'cell'.
" How should i use this function.please help me.
From: michael scheinfeild on
"beyaz " <11_FenE(a)yahoogroups.com> wrote in message <hlo4vo$ibe$1(a)fred.mathworks.com>...
> Hi, I'm trying fisheriris on statistic toolbox. I make a decision tree and i want to test it with a test dataset.I try to do it with cost = test(t,'test',X,y) function.I import a dataset from sgi dataset page iris.test named dataset. but everytime i try, i get an error message.i import test number for X and label for y.Error message is "??? Undefined function or method 'isnan' for input arguments of type 'cell'.
> " How should i use this function.please help me.

maybe the data vectors is cell and function needs mat
try convering it
datamat=cell2mat(datacell)
From: beyaz on
"michael scheinfeild" <yomholedet(a)gmail.com> wrote in message <hlop6k$s4j$1(a)fred.mathworks.com>...
> "beyaz " <11_FenE(a)yahoogroups.com> wrote in message <hlo4vo$ibe$1(a)fred.mathworks.com>...
> > Hi, I'm trying fisheriris on statistic toolbox. I make a decision tree and i want to test it with a test dataset.I try to do it with cost = test(t,'test',X,y) function.I import a dataset from sgi dataset page iris.test named dataset. but everytime i try, i get an error message.i import test number for X and label for y.Error message is "??? Undefined function or method 'isnan' for input arguments of type 'cell'.
> > " How should i use this function.please help me.
>
> maybe the data vectors is cell and function needs mat
> try convering it
> datamat=cell2mat(datacell)

hi again, datamat=cell2mat(datacell) didnt work but after that i found cellfun function. so thank you very much giving me the thought. it helped so much.have a nice day.
 | 
Pages: 1
Prev: DFT and SIGNAL PROCESSING
Next: fourier descriptor