www.pudn.com > jaguar2s.zip > rdvects.m


function y = rdvects(N); 
 
% read in a file of decimal IQ values 
 
fid=fopen('vectors.out'); 
 
[X,count]=fscanf(fid,'%d'); 
 
index=1; 
for i=1:2:2*N 
    I=X(i); 
    Q=X(i+1); 
    y(index) = I + j*Q; 
    index=index+1; 
end; 
 
fclose(fid); 
return;