summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/utils')
-rw-r--r--gnuradio-core/src/utils/.gitignore8
-rw-r--r--gnuradio-core/src/utils/Makefile.am56
-rw-r--r--gnuradio-core/src/utils/cic_comp_taps.m10
-rw-r--r--gnuradio-core/src/utils/cool.m4
-rw-r--r--gnuradio-core/src/utils/db_width.m8
-rw-r--r--gnuradio-core/src/utils/filter_tools.m12
-rw-r--r--gnuradio-core/src/utils/is_complex.m10
-rw-r--r--gnuradio-core/src/utils/lp_to_bp.m10
-rw-r--r--gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm3
-rw-r--r--gnuradio-core/src/utils/plot_cic_decimator_response.m11
-rw-r--r--gnuradio-core/src/utils/plot_freq_response.m10
-rw-r--r--gnuradio-core/src/utils/plot_freq_response_db.m10
-rw-r--r--gnuradio-core/src/utils/plot_freq_response_phase.m10
-rw-r--r--gnuradio-core/src/utils/plotfft.m8
-rw-r--r--gnuradio-core/src/utils/plotfftavgk.m10
-rw-r--r--gnuradio-core/src/utils/plotfftavgk_db.m12
-rw-r--r--gnuradio-core/src/utils/plotfftk.m10
-rw-r--r--gnuradio-core/src/utils/plotfftk_db.m10
-rw-r--r--gnuradio-core/src/utils/put_markers.m10
-rw-r--r--gnuradio-core/src/utils/rainbow.m4
-rw-r--r--gnuradio-core/src/utils/read_char_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_complex_binary.m12
-rw-r--r--gnuradio-core/src/utils/read_cshort_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_float_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_int_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_short_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_xambi.m10
-rw-r--r--gnuradio-core/src/utils/single_pole_iir.m10
-rw-r--r--gnuradio-core/src/utils/split_vect.m2
-rw-r--r--gnuradio-core/src/utils/write_float_binary.m10
-rw-r--r--gnuradio-core/src/utils/write_short_binary.m10
31 files changed, 132 insertions, 198 deletions
diff --git a/gnuradio-core/src/utils/.gitignore b/gnuradio-core/src/utils/.gitignore
deleted file mode 100644
index a02b6ff73..000000000
--- a/gnuradio-core/src/utils/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-/Makefile
-/Makefile.in
-/.la
-/.lo
-/.deps
-/.libs
-/*.la
-/*.lo
diff --git a/gnuradio-core/src/utils/Makefile.am b/gnuradio-core/src/utils/Makefile.am
deleted file mode 100644
index acf439140..000000000
--- a/gnuradio-core/src/utils/Makefile.am
+++ /dev/null
@@ -1,56 +0,0 @@
-#
-# Copyright 2001 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-EXTRA_DIST += \
- cic_comp_taps.m \
- db_width.m \
- filter_tools.m \
- plot_freq_response.m \
- plot_freq_response_db.m \
- plot_freq_response_phase.m \
- plotfft.m \
- plotfftavgk.m \
- plotfftavgk_db.m \
- plotfftk.m \
- plotfftk_db.m \
- put_markers.m \
- read_char_binary.m \
- read_complex_binary.m \
- read_float_binary.m \
- read_int_binary.m \
- read_short_binary.m \
- read_cshort_binary.m \
- single_pole_iir.m \
- write_float_binary.m \
- write_short_binary.m \
- is_complex.m \
- split_vect.m \
- rainbow.m \
- lp_to_bp.m \
- cool.m \
- read_xambi.m \
- runsum.m \
- plot_cic_decimator_response.m
-
-# partition-cascaded-decimating-filters.scm
-# permute.scm
diff --git a/gnuradio-core/src/utils/cic_comp_taps.m b/gnuradio-core/src/utils/cic_comp_taps.m
index e0e0c2ebd..9ae5cb167 100644
--- a/gnuradio-core/src/utils/cic_comp_taps.m
+++ b/gnuradio-core/src/utils/cic_comp_taps.m
@@ -1,23 +1,23 @@
#
# Copyright 2008 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
# See Altera Application Note AN455
#
diff --git a/gnuradio-core/src/utils/cool.m b/gnuradio-core/src/utils/cool.m
index e996a3a9f..f8b8a5cea 100644
--- a/gnuradio-core/src/utils/cool.m
+++ b/gnuradio-core/src/utils/cool.m
@@ -16,7 +16,7 @@
%% -*- texinfo -*-
%% @deftypefn {Function File} {} cool (@var{n})
-%% Create color colormap.
+%% Create color colormap.
%% (cyan to magenta)
%% The argument @var{n} should be a scalar. If it
%% is omitted, the length of the current colormap or 64 is assumed.
@@ -38,7 +38,7 @@ function map = cool (number)
end
if (number == 1)
- map = [0, 1, 1];
+ map = [0, 1, 1];
elseif (number > 1)
r = (0:number - 1)' ./ (number - 1);
g = 1 - r;
diff --git a/gnuradio-core/src/utils/db_width.m b/gnuradio-core/src/utils/db_width.m
index 204005c01..e9c64cc79 100644
--- a/gnuradio-core/src/utils/db_width.m
+++ b/gnuradio-core/src/utils/db_width.m
@@ -1,18 +1,18 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gnuradio-core/src/utils/filter_tools.m b/gnuradio-core/src/utils/filter_tools.m
index 6368edf5d..552791e33 100644
--- a/gnuradio-core/src/utils/filter_tools.m
+++ b/gnuradio-core/src/utils/filter_tools.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
%% equivalent to the C++ code in VrComplexFIRfilter::buildFilterComplex
1;
@@ -36,7 +36,7 @@ end
function new_taps = freq_shift_filter (old_taps, center_freq)
ntaps = length(old_taps);
-
+
new_taps = exp (j*2*pi*center_freq*(0:ntaps-1)') .* old_taps;
end
diff --git a/gnuradio-core/src/utils/is_complex.m b/gnuradio-core/src/utils/is_complex.m
index ce9a7010f..4700467b1 100644
--- a/gnuradio-core/src/utils/is_complex.m
+++ b/gnuradio-core/src/utils/is_complex.m
@@ -1,23 +1,23 @@
#
# Copyright 2004 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function p = is_complex (x)
p = any (imag (x) != 0);
diff --git a/gnuradio-core/src/utils/lp_to_bp.m b/gnuradio-core/src/utils/lp_to_bp.m
index e4ef3178d..4e73f6cc7 100644
--- a/gnuradio-core/src/utils/lp_to_bp.m
+++ b/gnuradio-core/src/utils/lp_to_bp.m
@@ -1,23 +1,23 @@
#
# Copyright 2002 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
## transform low pass coefficients into bandpass coefficients
diff --git a/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm b/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
index 598f79d8c..6ae7877f9 100644
--- a/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
+++ b/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
@@ -1,7 +1,7 @@
;; Estimate the total work (ntaps * sampling rate) for two cascaded
;; decimating low pass filters.
;;
-;; The basic assumption is that the number of taps required in any
+;; The basic assumption is that the number of taps required in any
;; section is inversely proportional to the normalized transition width
;; for that section.
;;
@@ -65,4 +65,3 @@
(define (extract-nth n lst)
lst)
- \ No newline at end of file
diff --git a/gnuradio-core/src/utils/plot_cic_decimator_response.m b/gnuradio-core/src/utils/plot_cic_decimator_response.m
index 50d85e413..8f06aeafe 100644
--- a/gnuradio-core/src/utils/plot_cic_decimator_response.m
+++ b/gnuradio-core/src/utils/plot_cic_decimator_response.m
@@ -1,23 +1,23 @@
#
# Copyright 2004 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_cic_decimator_response (R, N, M)
## R = decimation rate
@@ -42,4 +42,3 @@ function plot_cic_decimator_response (R, N, M)
endfunction
- \ No newline at end of file
diff --git a/gnuradio-core/src/utils/plot_freq_response.m b/gnuradio-core/src/utils/plot_freq_response.m
index 032d98961..335c51d62 100644
--- a/gnuradio-core/src/utils/plot_freq_response.m
+++ b/gnuradio-core/src/utils/plot_freq_response.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plot_freq_response_db.m b/gnuradio-core/src/utils/plot_freq_response_db.m
index 6cd9bbfc2..10ce7d6e1 100644
--- a/gnuradio-core/src/utils/plot_freq_response_db.m
+++ b/gnuradio-core/src/utils/plot_freq_response_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response_db (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plot_freq_response_phase.m b/gnuradio-core/src/utils/plot_freq_response_phase.m
index c593d5dd3..591bd5b94 100644
--- a/gnuradio-core/src/utils/plot_freq_response_phase.m
+++ b/gnuradio-core/src/utils/plot_freq_response_phase.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response_db (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plotfft.m b/gnuradio-core/src/utils/plotfft.m
index ddb8d9de4..20a2efd4c 100644
--- a/gnuradio-core/src/utils/plotfft.m
+++ b/gnuradio-core/src/utils/plotfft.m
@@ -1,18 +1,18 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
diff --git a/gnuradio-core/src/utils/plotfftavgk.m b/gnuradio-core/src/utils/plotfftavgk.m
index afe9aae5b..c82c540f3 100644
--- a/gnuradio-core/src/utils/plotfftavgk.m
+++ b/gnuradio-core/src/utils/plotfftavgk.m
@@ -1,23 +1,23 @@
#
# Copyright 2002 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftavgk_db (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/plotfftavgk_db.m b/gnuradio-core/src/utils/plotfftavgk_db.m
index 420ee9fad..73cee140d 100644
--- a/gnuradio-core/src/utils/plotfftavgk_db.m
+++ b/gnuradio-core/src/utils/plotfftavgk_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftavgk_db (all_data, k, sample_rate)
@@ -62,7 +62,7 @@ function plotfftavgk_db (all_data, k, sample_rate)
x = min_x:incr:max_x;
y = 20 * log10(s(1:len/2));
plot (x, y);
-
+
endif;
diff --git a/gnuradio-core/src/utils/plotfftk.m b/gnuradio-core/src/utils/plotfftk.m
index 94a8ffb77..df2bf3aca 100644
--- a/gnuradio-core/src/utils/plotfftk.m
+++ b/gnuradio-core/src/utils/plotfftk.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftk (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/plotfftk_db.m b/gnuradio-core/src/utils/plotfftk_db.m
index 9ec981ac5..b2c85412f 100644
--- a/gnuradio-core/src/utils/plotfftk_db.m
+++ b/gnuradio-core/src/utils/plotfftk_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftk_db (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/put_markers.m b/gnuradio-core/src/utils/put_markers.m
index 250702ce6..1244d31aa 100644
--- a/gnuradio-core/src/utils/put_markers.m
+++ b/gnuradio-core/src/utils/put_markers.m
@@ -1,23 +1,23 @@
#
# Copyright 2002 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function put_markers (y)
diff --git a/gnuradio-core/src/utils/rainbow.m b/gnuradio-core/src/utils/rainbow.m
index 9b16aab25..35fab19b8 100644
--- a/gnuradio-core/src/utils/rainbow.m
+++ b/gnuradio-core/src/utils/rainbow.m
@@ -16,7 +16,7 @@
## -*- texinfo -*-
## @deftypefn {Function File} {} rainbow (@var{n})
-## Create color colormap.
+## Create color colormap.
## (red through yellow, green, cyan,blue,magenta to red)
## The argument @var{n} should be a scalar. If it
## is omitted, the length of the current colormap or 64 is assumed.
@@ -42,7 +42,7 @@ function map = rainbow (number)
endif
if (number == 1)
- map = [1, 0, 0];
+ map = [1, 0, 0];
elseif (number > 1)
h = linspace (0, 1, number)';
map = hsv2rgb ([h, ones(number, 1), ones(number, 1)]);
diff --git a/gnuradio-core/src/utils/read_char_binary.m b/gnuradio-core/src/utils/read_char_binary.m
index 27044b447..029cea783 100644
--- a/gnuradio-core/src/utils/read_char_binary.m
+++ b/gnuradio-core/src/utils/read_char_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_char_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_complex_binary.m b/gnuradio-core/src/utils/read_complex_binary.m
index 67158b528..eb81f0fa0 100644
--- a/gnuradio-core/src/utils/read_complex_binary.m
+++ b/gnuradio-core/src/utils/read_complex_binary.m
@@ -1,29 +1,29 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_complex_binary (filename, count)
%% usage: read_complex_binary (filename, [count])
%%
- %% open filename and return the contents as a column vector,
+ %% open filename and return the contents as a column vector,
%% treating them as 32 bit complex numbers
%%
diff --git a/gnuradio-core/src/utils/read_cshort_binary.m b/gnuradio-core/src/utils/read_cshort_binary.m
index 047067107..149b6ca88 100644
--- a/gnuradio-core/src/utils/read_cshort_binary.m
+++ b/gnuradio-core/src/utils/read_cshort_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001,2008 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function cv = read_cshort_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_float_binary.m b/gnuradio-core/src/utils/read_float_binary.m
index 69d064096..d27d09b9c 100644
--- a/gnuradio-core/src/utils/read_float_binary.m
+++ b/gnuradio-core/src/utils/read_float_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_float_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_int_binary.m b/gnuradio-core/src/utils/read_int_binary.m
index 821f68829..cd83bb663 100644
--- a/gnuradio-core/src/utils/read_int_binary.m
+++ b/gnuradio-core/src/utils/read_int_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001,2002 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_int_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_short_binary.m b/gnuradio-core/src/utils/read_short_binary.m
index 92720856a..7b42f5e2b 100644
--- a/gnuradio-core/src/utils/read_short_binary.m
+++ b/gnuradio-core/src/utils/read_short_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 Free Software Foundation, Inc.
-%
+%
% This file is part of GNU Radio
-%
+%
% GNU Radio is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3, or (at your option)
% any later version.
-%
+%
% GNU Radio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
-%
+%
% You should have received a copy of the GNU General Public License
% along with GNU Radio; see the file COPYING. If not, write to
% the Free Software Foundation, Inc., 51 Franklin Street,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_short_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_xambi.m b/gnuradio-core/src/utils/read_xambi.m
index ac5bf389b..5adb94264 100644
--- a/gnuradio-core/src/utils/read_xambi.m
+++ b/gnuradio-core/src/utils/read_xambi.m
@@ -1,23 +1,23 @@
#
# Copyright 2001,2005 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function v = read_xambi (filename)
diff --git a/gnuradio-core/src/utils/single_pole_iir.m b/gnuradio-core/src/utils/single_pole_iir.m
index 8ff4c3247..12e21f2ac 100644
--- a/gnuradio-core/src/utils/single_pole_iir.m
+++ b/gnuradio-core/src/utils/single_pole_iir.m
@@ -1,23 +1,23 @@
#
# Copyright 2002 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function [b, a] = single_pole_iir (alpha)
b = [alpha];
diff --git a/gnuradio-core/src/utils/split_vect.m b/gnuradio-core/src/utils/split_vect.m
index c492581e4..aef5c5c38 100644
--- a/gnuradio-core/src/utils/split_vect.m
+++ b/gnuradio-core/src/utils/split_vect.m
@@ -3,7 +3,7 @@
function y = split_vect(vect,N)
Z = floor(max(size(vect))/N);
y = [];
- if(size(vect)(1)>size(vect)(2))
+ if(size(vect)(1)>size(vect)(2))
v = vect';
else
v = vect;
diff --git a/gnuradio-core/src/utils/write_float_binary.m b/gnuradio-core/src/utils/write_float_binary.m
index 99f375790..79414878b 100644
--- a/gnuradio-core/src/utils/write_float_binary.m
+++ b/gnuradio-core/src/utils/write_float_binary.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function v = write_float_binary (data, filename)
diff --git a/gnuradio-core/src/utils/write_short_binary.m b/gnuradio-core/src/utils/write_short_binary.m
index 0266e434b..72b3c408e 100644
--- a/gnuradio-core/src/utils/write_short_binary.m
+++ b/gnuradio-core/src/utils/write_short_binary.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
function v = write_short_binary (data, filename)