concept-collection / sample-6
sample-6 / README.md
22 lines · 1.1 KBCodeBlameHistory
0a4fb76Initial commitJeremy Magland 1# numbl sample project
3This project runs MATLAB-syntax `.m` files in your browser with
4[numbl](https://numbl.org). Open a script and press the **▶** button in the
5tab bar:
7- `waves.m` — damped oscillations: printed output goes to the **Output**
8 panel at the bottom, the plot opens as **Figure 1** in the side bar to the
9 right. Calls `damped_wave.m` (functions next to the script are found
10 automatically, like MATLAB's path rules).
11- `scripts/surface_demo.m` — a 3-D surface. Uses `addpath` to call a
12 function from the `lib/` folder.
13- `scripts/animation.m` — figures update live during the run (`drawnow`).
14- `scripts/write_results.m` — writes a file; it appears in the Explorer
15 when the run finishes.
16- `scripts/mip_demo.m` — installs the `inpoly` package from the
17 [mip](https://mip.sh) registry on first run (`mip load --install`) and
18 uses it. Installed packages are cached in your browser, shared by all
19 projects, and refreshed automatically after 30 minutes of inactivity.
21Edits are saved with **Ctrl+S** and persist in your browser. Runs use the
22current editor contents, saved or not. Press **⏹** to stop a runaway run.