Tuesday, 27 August 2013

SVM for ECG signal feature classification?

SVM for ECG signal feature classification?

I am new to using Matlab and I am trying to follow the example
function [ corr ] = svfit( InPop,chck)[m,n]=
size(InPop);corr=zeros(m,n);for i=1:n for j=1:n if j==i j=j+1;end
sum=0;data=[InPop(:,[i,j])];groups=ismember(chck,'arth');
[train,test]=crossvalind('holdOut',groups);cp=classperf(groups);
svmStruct=svmtrain(data(train,:),groups(train), 'showplot',true);
classes=svmclassify(svmStruct,data(test,:), 'showplot',true);
classperf(cp,classes,test);sum=sum+ cp.CorrectRate;j=j+1;end
corr(i)=sum/17;i=i+1;
to handle a classification problem.
However, I am not able to understand why it isn't running . Is the code
true or not? What is the best code to classify ECG signal ? How can i
initialize the input of support vector machine from genetic algorithm ? I
hope to help me and please don't delete my question ..

No comments:

Post a Comment