با سلام میخواستم در قسمتی از کد متلب بجای این کد Svm یعنی بجایsvmtrain و svmclassifyکد درخت تصمیم رو جایگزین کنم ممنون میشم بفرمایید چطوری؟
theclass=ones(row11,1);
theclass(floor((row11/2))+1:row11)=0;%2301 ta 4601 ra dar theclass 0 baraye tarif female male 1 o 0
svmStruct =svmtrain(xxdata,theclass);%??
%svmStruct =svmtrain(xxdata,Xdata

,d));
Xnew =xxdata;
species = svmclassify(svmStruct,X[/QUOTE][/QUOTE]new,'ShowPlot',true);%dastebandy har radif be yeki az dastehaie 0 o 1
xxdata یک آرایه 58*3 هست
هستrow11=58