diff doc/interpreter/container.txi @ 7031:120f3135952f

[project @ 2007-10-15 15:30:03 by jwe]
author jwe
date Mon, 15 Oct 2007 15:31:21 +0000
parents adf164b814b3
children 5bc08f9758e6
line wrap: on
line diff
--- a/doc/interpreter/container.txi	Mon Oct 15 13:20:01 2007 +0000
+++ b/doc/interpreter/container.txi	Mon Oct 15 15:31:21 2007 +0000
@@ -310,8 +310,9 @@
 
 @example
 @group
-in = struct ('call1', @{x, Inf, 'last'@}, 'call2', @{x, Inf, 'first'@});
-in (:, 1) = []
+in = struct ("call1", @{x, Inf, "last"@}, 
+             "call2", @{x, Inf, "first"@});
+in (1, :) = []
 @result{} in =
       @{
         call1 =
@@ -343,7 +344,7 @@
 
 @example
 @group
-struct ('field1', 1, 'field2', 2)
+struct ("field1", 1, "field2", 2)
 @result{} ans =
       @{
         field1 =  1
@@ -358,7 +359,8 @@
 
 @example
 @group
-struct ('field1', @{1, 'one'@}, 'field2', @{2, 'two'@}, 'field3', 3);
+struct ("field1", @{1, "one"@}, "field2", @{2, "two"@},
+        "field3", 3)
 @result{} ans =
       @{
         field1 =
@@ -605,7 +607,7 @@
 
 @example
 @group
-x = @{'1', '2'; '3', '4'@};
+x = @{"1", "2"; "3", "4"@};
 x@{1, :@} = []
 @result{} x =
       @{
@@ -709,7 +711,7 @@
 example
 
 @example
-[@var{i}, @var{j}] = ceil (find (@var{x}, [], 'last'));
+[@var{i}, @var{j}] = ceil (find (@var{x}, [], "last"));
 @end example
 
 @noindent
@@ -786,8 +788,8 @@
 @group
 in @{1@} = ceil (rand (10, 1));
 in @{2@} = [];
-in @{3@} = 'last';
-in @{4@} = 'first';
+in @{3@} = "last";
+in @{4@} = "first";
 out = cell (4, 1);
 [out@{1:2@}] = find (in@{1 : 3@});
 [out@{3:4@}] = find (in@{[1, 2, 4]@});
@@ -801,8 +803,9 @@
 @example
 @group
 x = ceil (randn (10, 1)); 
-in = struct ('call1', @{x, Inf, 'last'@}, 'call2', @{x, Inf, 'first'@});
-out = struct ('call1', cell (2, 1), 'call2', cell (2, 1));
+in = struct ("call1", @{x, Inf, "last"@}, 
+             "call2", @{x, Inf, "first"@});
+out = struct ("call1", cell (2, 1), "call2", cell (2, 1));
 [out.call1] = find (in.call1);
 [out.call2] = find (in.call2);
 @end group