text='VJG BGDTC JCU UVTKRGU'
num=double(text)
n=length(num)
bokst=zeros(26,1);
letters={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
for i=1:n
    for j=65:90
        if num(i)==j,bokst(j-64)=bokst(j-64)+1;
        end
    end
end
pie(bokst,letters)

