Jeremy Magland initial
| example1.md | |
| README.md |
Early Stage & Experimental - This project is in early development and should be considered experimental.
numbl Embed Example#
This repository demonstrates how to embed interactive MATLAB scripts in Markdown files using numbl-embed. When rendered on GitHub Pages, the embedded scripts become editable and executable directly in the browser via numbl.
Example#
- Rendered: example1
- Source: example1.md
<script src="https://numbl.org/numbl-embed.js"></script>
This demonstrates how to embed numbl in a markdown file that can be rendered on GitHub pages.
<numbl-embed>
<iframe width="100%" height="600" frameborder="0"></iframe>
<script type="text/plain" class="matlab-script">
% Matrix operations example
A = [8, 1, 6; 3, 5, 7; 4, 9, 2];
disp('Matrix A:')
disp(A)
disp('Sum of each row:')
disp(sum(A, 2))
disp('Sum of each column:')
disp(sum(A, 1))
</script>
</numbl-embed>