updates
2 changed files+22−1
README.mdmodified+21−0View file
@@ -30,3 +30,24 @@ disp(sum(A, 1))
3030 </script>
3131 </numbl-embed>
3232 ```
33+
34+It even works with plotting:
35+
36+```markdown
37+<script src="https://numbl.org/numbl-embed.js"></script>
38+
39+This demonstrates how to embed numbl in a markdown file that can be rendered on GitHub pages.
40+
41+<numbl-embed>
42+<iframe width="100%" height="600" frameborder="0"></iframe>
43+<script type="text/plain" class="matlab-script">
44+% Damped oscillation
45+t = linspace(0, 10, 200);
46+y = exp(-0.3 * t) .* sin(2 * pi * t);
47+plot(t, y)
48+title('Damped Oscillation')
49+xlabel('Time')
50+ylabel('Amplitude')
51+</script>
52+</numbl-embed>
53+```
example1.mdmodified+1−1View file
@@ -26,7 +26,7 @@ disp(sum(sum(A)))
2626
2727 If it worked, you should see an embedded numbl above with a matrix operations example.
2828
29-Here's an example with a Lissajous curve plot:
29+Here's a plotting example:
3030
3131 <numbl-embed>
3232 <iframe width="100%" height="600" frameborder="0"></iframe>