Useful Octave Functions

Econtour

Econtour

You need the following files to properly use the econtour function:

This function produces two-dimensional contour plots. For more detailed inctructions, please refer to the documentation.

Example 1

In Octave:

x = (-10:1:10)';
y = x';
z = x*y;
__gnuplot_raw__ ("set title 'Contour'\n");
econtour (x, y, z, 10, "-@(3|2|3|4|0.5);x*y;");

The output will be:

Example 2

In Octave:

x = (-10:1:10)';
y = x';
z = x*y;
w = sin(x)*sin(y);
__gnuplot_raw__ ("set title 'Econtour 2'\n");
econtour (x, y, z, 10, "-@(3|1|3|4|0.5);x*y;", x, y, w, 5, "-@(2|1|4|6|0.5);sin(x)*sin(y);");

The output will be:

©2007 Francis Poulin