function Array=str2binArray(String) N =length(String); Array = zeros(1,N); for p=1:N Array(p) = str2num(String(p)); end