Changes

Jump to navigation Jump to search
m
syntax highlighting.
Line 11: Line 11:     
Let's do an example:
 
Let's do an example:
 
+
{{Code||<syntaxhighlight lang="octave" style="font-size:13px">
 
  graphics_toolkit ("gnuplot");
 
  graphics_toolkit ("gnuplot");
 
  x = 0:0.1:3;
 
  x = 0:0.1:3;
 
  y = sin (x);
 
  y = sin (x);
 
  p = plot (x, y, "b");
 
  p = plot (x, y, "b");
 +
</syntaxhighlight>}}
 +
    
This should get you a plot of a part of a sine wave. Octave has used all standard properties like line widths, fonts, etc, except for the line color which was forced to be blue (via the {{Codeline|'b'}}).
 
This should get you a plot of a part of a sine wave. Octave has used all standard properties like line widths, fonts, etc, except for the line color which was forced to be blue (via the {{Codeline|'b'}}).
1

edit

Navigation menu