Octave fun: Difference between revisions

Jump to navigation Jump to search
22 bytes added ,  13 June 2019
m
→‎Octave fun scripts: Use File-Template.
(→‎Octave fun scripts: Inline code example and overhaul code.)
m (→‎Octave fun scripts: Use File-Template.)
Line 7: Line 7:
Octave tree: [[File:OctaveTree.png|500px]]
Octave tree: [[File:OctaveTree.png|500px]]


<syntaxhighlight lang="octave">
{{File|OctaveTree.m|<syntaxhighlight lang="octave">
N = 25;  # Height
N = 25;  # Height
H = 7;  # Trunk height
H = 7;  # Trunk height
Line 48: Line 48:
   i++;
   i++;
endwhile
endwhile
</syntaxhighlight>
</syntaxhighlight>}}


[[Category:Examples]]
[[Category:Examples]]

Navigation menu