Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /inst/pammod.m [786917] .. [d6dad2] Maximize Restore

  Switch to side-by-side view

--- a/inst/pammod.m
+++ b/inst/pammod.m
@@ -21,8 +21,8 @@
 ## Modulates an information sequence of integers @var{x} in the range
 ## @code{[0 @dots{} M-1]} onto a pulse amplitude modulated signal @var{y}.
 ## @var{phi} controls the initial phase and @var{type} controls the
-## constellation mapping. If @var{type} is set to 'Bin' will result in
-## binary encoding, in contrast, if set to 'Gray' will give Gray encoding.
+## constellation mapping. If @var{type} is set to "Bin" will result in
+## binary encoding, in contrast, if set to "Gray" will give Gray encoding.
 ## An example of Gray-encoded 8-PAM is
 ##
 ## @example
@@ -72,5 +72,5 @@
 
 endfunction
 
-%!assert (round (pammod ([0:7], 8, 0, 'Bin')), [-7:2:7])
-%!assert (round (pammod ([0:7], 8, 0, 'Gray')), [-7 -5 -1 -3 7 5 1 3])
+%!assert (round (pammod ([0:7], 8, 0, "Bin")), [-7:2:7])
+%!assert (round (pammod ([0:7], 8, 0, "Gray")), [-7 -5 -1 -3 7 5 1 3])