From 23d77ae01c4caadff26ea51ec0e2bd39e5f0be26 Mon Sep 17 00:00:00 2001 From: josdejong Date: Sun, 18 Aug 2013 20:25:00 +0200 Subject: [PATCH] Fixed matrix.get and matrix.set examples in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1167f881e..c6b0f50cb 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ math.factorial(array); // Array, [1, 2, 6, 24, 120] var a = [[1, 2], [3, 4]]; // Array, [[1, 2], [3, 4]] var b = math.matrix([[5, 6], [1, 1]]); // Matrix, [[5, 6], [1, 1]] -b.set(math.index(2, [1, 2]), [[7, 8]]); // Matrix, [[5, 6], [7, 8]] +b.set(math.index(2, [1, 3]), [[7, 8]]); // Matrix, [[5, 6], [7, 8]] var c = math.multiply(a, b); // Matrix, [[19, 22], [43, 50]] var d = c.get(math.index(1, 0)); // 43 ```