function A=vectoalpha(x) %Outputs a 5 x 7 matrix A that represents a letter u=length(x); if u~=35 error('Inappropriate length for this function'); end x=x(:); A=zeros(5,7); for i=1:7 a=5*i-4; b=5*i; A(:,i)=x(a:b); end A=A';