from shannon and non-extensive entropy by Guan Wenye
shannon Tsallis,renyi,escort Tsallis entropy and relative entropy

y=renyi_entro(DATA,q)
function y=renyi_entro(DATA,q)
  [M,N]=size(DATA);
       y=zeros(1,N);
       for n=1:N
           y(1,n)=log(sum(DATA(:,n).^q))/(1-q);
       end

Contact us at files@mathworks.com