I would like to compute the Mean Square Error of location reports of a multibeam RFID reader. I used 8 tags, they were on fix positions that I know exactly (you will find them in the code). I made measurements with the RFID reader in Viusal Studio to localizate the tags position and I saved the datas. I imported the datas into Matlab then plot them on a graph.
Now I want to compute the error of the localization. I'm not sure what the best way is, but my idea is to compute the errors for each fix tags (8), then sum them and get the global error of the Reader.
Here is my program:
close all
clc
RealPOSX=[40 31 0 -31 -40 -32 0 +31];
RealPosY=[0 27 40 27 0 -27 -40 -27];
RealTagID=['A3 ' ;'A1 ' ; '9F ' ;'9D ' ; '9B ' ; 'A9 ' ; 'A7 ' ; 'A5 ' ];
for i=1:length(XLocalization)
temp=Epc{i};
ID(i,:)=temp(end-2:end);
end
colorsR = {[0 0 0], [0 1 0], [1 0 0], [0 0.5 0.5], [0 1 1], [1 1 0], [1 0 1], [0.5 0.5 0]};
for i =1: length(RealPOSX)
idx = all(ismember(ID,RealTagID(i,:)),2)
pos=find(idx==1);
POS{i}=pos;
scatter(RealPOSX(i),RealPosY(i),50,colorsR{i},'*')
hold on
scatter(XLocalization(pos),Ylocalization(pos),50,colorsR{i})
end
grid on
Here is the measured datas: Measured datas
I hope somebody can help me, at least to give some idea, but I would be very grateful if he could supply some codes as well. I have searched and tried a lot, but I couldn't solve this by myself...
So to sum up, I want to know the accuracy of the reader. For that I need to define the Mean Square Error of the localizated positions (x,y) between the known, fix positions and the measured positions. How should I do it in Matlab?