Robochameleon  v1.0
getEVM.m
1 function [ evm ] = getEVM( srx, constellation )
2 
3 % Calculate EVM
4 for q=1:length(srx)
5  for j=1:length(constellation)
6  ekc(j)=abs(srx(q,:) - constellation(j,:));
7  end
8  ek(q)=min(ekc.^2);
9 end
10 evm=sqrt(sum(ek)/length(srx))*100;
11 
12 end
13