# HG changeset patch # User Kai T. Ohlhus # Date 1477993239 -3600 # Node ID 86b96d9a00758962bea01e34437a75fc8657d35a # Parent 7dd5053fdca14b333294e16a62015ef5a7be03e9 Format main page. diff -r 7dd5053fdca1 -r 86b96d9a0075 _includes/head.html --- a/_includes/head.html Tue Nov 01 10:39:05 2016 +0100 +++ b/_includes/head.html Tue Nov 01 10:40:39 2016 +0100 @@ -18,7 +18,7 @@ - + diff -r 7dd5053fdca1 -r 86b96d9a0075 index.html --- a/index.html Tue Nov 01 10:39:05 2016 +0100 +++ b/index.html Tue Nov 01 10:40:39 2016 +0100 @@ -30,41 +30,53 @@ -
+

Syntax Examples

- The Octave syntax is largely compatible with Matlab. The Octave interpreter can be run in GUI mode, as a console, or invoked as part of a shell script. + The Octave syntax is largely compatible with + Matlab. + The Octave interpreter can be run in GUI mode, as a console, + or invoked as part of a shell script.

-

Solve systems of equations with linear algebra operations on vectors and matrices

+

+ Solve systems of equations with linear algebra operations on + vectors and matrices. +

-{% highlight matlab%} -b = [4; 9; 2] % Column vector +{% highlight octave %} +b = [4; 9; 2] # Column vector A = [ 3 4 5; 1 3 1; 3 5 9 ] -x = A \ b % Solve the system by inverting A +x = A \ b # Solve the system Ax = b by inverting A {% endhighlight %} -
+
-

Visualize data with high-level plot commands in 2D and 3D

+

+ Visualize data with high-level plot commands + in 2D and 3D. +

-{% highlight matlab %} -x = -10:0.1:10 # Create an evenly-spaced vector from -10..10 -y = sin (x) # y is also a vector -plot (x, y) +{% highlight octave %} +x = -10:0.1:10; # Create an evenly-spaced vector from -10..10 +y = sin (x); # y is also a vector +plot (x, y); +title ("Simple 2-D Plot"); +xlabel ("x"); +ylabel ("sin (x)"); {% endhighlight %}
-
+

Octave Forge

- Octave Forge is a central location for development of packages for GNU Octave, similar to Matlab's toolboxes. To install a package, use the pkg command from the Octave prompt by typing: + Octave Forge + is a central location for development of packages for GNU Octave, + similar to Matlab's toolboxes. To install a package, use the + pkg command from the Octave prompt by typing:

{% highlight text %} pkg install -forge package_name @@ -108,14 +123,22 @@
-
+

Development

- Octave is free software licensed under the GNU General Public License (GPL). Assuming you have Mercurial installed on your machine you may obtain the latest development version of Octave sources with the following command: + Octave is free software licensed under the + GNU General Public License (GPL). + Assuming you have Mercurial installed on your machine + you may obtain the latest development version of Octave sources + with the following command:

-

hg clone http://www.octave.org/hg/octave

+{% highlight text %} +hg clone http://www.octave.org/hg/octave +{% endhighlight %}

- If you want to participate in Octave development, join the maintainers@octave.org mailing list. + If you want to participate in Octave development, join the + maintainers@octave.org + mailing list.

@@ -147,6 +170,6 @@