MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: pls help me to find the accuracy correctly.

 Subject: pls help me to find the accuracy correctly. From: balan chelvi Date: 9 Aug, 2012 05:19:15 Message: 1 of 2 Vm=Out; [row,col]=find(Vm==255); FN1=length(row); [row,col]=find(Vm==0); TN1=length(row); [row,col]=find(Vm>0); TP=length(row); [m,n]=size(Vm); FP=abs(TP-(m-8*n-8)); FN=abs(FN1-TP); TN=abs(TN1-FP); Sensitivity=TP/(TP+FN); disp('Sensitivity in Percentage'); disp(Sensitivity*100); ACC=(TP+TN)/(TP+FP+TN+FN); disp('Accuracy in Percentage'); disp(ACC*100);
 Subject: pls help me to find the accuracy correctly. From: Kwen Date: 9 Aug, 2012 18:39:25 Message: 2 of 2 "balan chelvi" wrote in message ... > Vm=Out; > [row,col]=find(Vm==255); > FN1=length(row); > [row,col]=find(Vm==0); > TN1=length(row); > [row,col]=find(Vm>0); > TP=length(row); > [m,n]=size(Vm); > FP=abs(TP-(m-8*n-8)); > FN=abs(FN1-TP); > TN=abs(TN1-FP); > > Sensitivity=TP/(TP+FN); > disp('Sensitivity in Percentage'); > disp(Sensitivity*100); > > ACC=(TP+TN)/(TP+FP+TN+FN); > disp('Accuracy in Percentage'); > disp(ACC*100); I think you need to be more specific as to what you're asking for help with. What is the input 'Out'?