Skip to content

Commit 99cb54a

Browse files
authored
Correct a[a < 5] in ulab-ndarray.ipynb (#678)
1 parent 41c4363 commit 99cb54a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ulab-ndarray.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,7 @@
32703270
"output_type": "stream",
32713271
"text": [
32723272
"a:\t array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0], dtype=float)\n",
3273-
"a < 5:\t array([0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)\n",
3273+
"a[a < 5]:\t array([0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)\n",
32743274
"\n",
32753275
"\n"
32763276
]
@@ -3283,7 +3283,7 @@
32833283
"\n",
32843284
"a = np.array(range(9), dtype=np.float)\n",
32853285
"print(\"a:\\t\", a)\n",
3286-
"print(\"a < 5:\\t\", a[a < 5])"
3286+
"print(\"a[a < 5]:\\t\", a[a < 5])"
32873287
]
32883288
},
32893289
{

0 commit comments

Comments
 (0)