diff --git a/garage_ip.m b/garage_ip.m index eeed12c..ebf22ee 100755 --- a/garage_ip.m +++ b/garage_ip.m @@ -234,9 +234,15 @@ while ns < N end bits = bits'; -n = 1:length(_ys); +fp = fopen("bits.dat", 'w'); + +for n=1:length(bits) + fprintf(fp, "%d", bits(n)); +endfor +fclose(fp) % Plot +n = 1:length(_ys); subplot(4, 1, 1) plot(n, _ys, '-o', smp_n, smp, 'ro'); grid; subplot(4, 1, 2)