From 73c53f30cb9420164171587f132f9015f0081d29 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 15 Jul 2019 15:32:14 +0000 Subject: [PATCH] - store bits git-svn-id: http://moon:8086/svn/matlab/trunk@126 801c6759-fa7c-4059-a304-17956f83a07c --- garage_ip.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)