Commit ee41abec authored by Michael Krause's avatar Michael Krause 🎉
Browse files

README: code block is matlab

parent b4f04499
......@@ -14,7 +14,7 @@ data (hence 3D) to reduce the memory footprint.
First, we create a 20x20x20 cube and a spherical mask in the center:
```
```matlab
d = 20;
m = rand(d, d, d);
......@@ -36,7 +36,7 @@ plot_lattice3D(m, mask, 'original matrix/mesh');
We cut out everything outside of the mask with `zipmask_pack()`:
```
```matlab
s = zipmask_pack(m, mask);
plot_lattice3D(s.data, s.mask, 'compressed matrix/mesh');
```
......@@ -45,7 +45,7 @@ plot_lattice3D(s.data, s.mask, 'compressed matrix/mesh');
And re-grow the small data with `zipmask_unpack()`:
```
```matlab
[um, umask] = zipmask_unpack(s);
plot_lattice3D(um, umask, 'expanded matrix/mesh');
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment