QuantEcon / QuantEcon.cheatsheet

A cheatsheet for Python and Julia
154 stars 65 forks source link

indexing #15

Closed sglyon closed 8 years ago

sglyon commented 8 years ago

We have this example:

|                                | .. code-block:: matlab        | .. code-block:: python        | .. code-block:: julia     |
|                                |                               |                               |                           |
| Access one element             |     A(2, 2)                   |    A[2, 2]                    |     A[2, 2]               |

We should use this example to show one vs zero based indexing (e.g. change the python one to A[1, 1]