%N Nombre de points de sinusoide
N=512
% CONTENU DE ROM 1
figure(1)
x=0:(2*pi)/N:2*pi
stem(sin(x));
SINUS_1=round(127*sin(x));
stem(SINUS_1)
for i = 1:N     
    if SINUS_1(i)<0  SINUS_1(i) = 256 + SINUS_1(i); end;
end
fid = fopen('sinus_bin_1.txt','wt');
for i = 1:N  
fprintf(fid,'"%s",',dec2bin(SINUS_1(i),8));
end
fclose(fid)
