Octave

From Coder Merlin
Jump to navigation Jump to search

Graphing[edit]

  • Be sure to execute graphics_toolkit("gnuplot") prior to graphing

Examples[edit]

3-D Sombrero Plot[edit]

tx = ty = linspace (-8, 8, 41)';
[xx, yy] = meshgrid (tx, ty);
r = sqrt (xx .^ 2 + yy .^ 2) + eps;
tz = sin (r) ./ r;
mesh (tx, ty, tz);
xlabel ("tx");
ylabel ("ty");
zlabel ("tz");
title ("3-D Sombrero plot");


Designed with pride in Silicon Valley, CA, USA