Prerequisites for using the notebooks: 1. Install Jupyter notebook (https://jupyter.readthedocs.io/en/latest/install.html) 2. Download the library used in the book from GitHub, and go to the root folder: git clone https://github.com/oyvindry/applinalgcode.git cd applinalgcode 3. Copy the notebook files (those ending with .ipynb) to this location If your system has Python (v.3) installed, and you are only interested in using the Python notebooks, you can now execute the python notebooks. Otherwise, for Matlab the following steps need to be followed: 1. Install Matlab, and add the folder “matlab” to the path. 2. Install Matlab engine API for Python (see https://se.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html). This did not work from the MATLAB command prompt, so do from a terminal, as described. 3. Install the matlab kernel. If you have anaconda (recommended), write “pip install matlab_kernel” To execute the notebooks, run the “jupyter notebook” command from a terminal window, with the notebook-file as argument. As an example, to open the Matlab notebook for chapter 1 write: jupyter notebook chapter1matlab.ipynb & To open the Python notebook for chapter 1 write: jupyter notebook chapter1python.ipynb & Once the notebook has been opened, any sets of cells can be marked and executed via the cell menu. One must also set the appropriate kernel. For Python nothing needs to be done, since Python is the default kernel. For Matlab on the other hand, one needs to set the kernel before any of the cells are executed: In the “Kernel” menu, select “Change kernel”, and then “Matlab”. It is important the the notebooks are run from the location described here (i.e. the “applinalgcode” folder). Otherwise image- and sound files used by the notebooks will not be found. Modules residing in the “python” folder will also be found from this location. For Matlab it is important that the path is modified as described above.