Mercurial > web-octave
comparison index.md @ 88:45d807d2bfcc kai
Revisit index start page.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Mon, 17 Oct 2016 18:39:05 +0200 |
parents | 5e297505996c |
children |
comparison
equal
deleted
inserted
replaced
87:1752b8520622 | 88:45d807d2bfcc |
---|---|
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: Home | |
4 menu: false | |
3 --- | 5 --- |
4 | 6 |
5 **[GNU Octave][1]** is a high-level interpreted language, | 7 **[GNU Octave][1]** is a high-level interpreted language, |
6 primarily intended for numerical computations, | 8 primarily intended for numerical computations, |
7 with built-in plotting and visualization capabilities. | 9 with built-in plotting and visualization capabilities. |
8 Many [Octave Forge packages][2] provide useful extensions for | 10 Many [Octave Forge packages][2] provide useful extensions for |
9 several scientific and engineering applications. | 11 several scientific and engineering applications. |
10 The GNU Octave language is quite similar to [Matlab][3] | 12 The GNU Octave language is quite similar to [Matlab][3] |
11 so that most programs are easily portable. | 13 so that most programs are easily portable. |
14 [Read more][4]. | |
12 | 15 |
13 Octave is distributed under the terms of the | 16 Octave is distributed under the terms of the |
14 [GNU General Public License][4]. | 17 [GNU General Public License][5]. |
15 | 18 |
16 [![GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0][screen-small]][screen] | 19 [![GNU Octave 4.0.3 Screenshot][screen-small]][screen] |
17 | 20 |
18 [1]: http://www.octave.org | 21 [1]: http://www.octave.org |
19 [2]: http://octave.sourceforge.net/packages.php | 22 [2]: http://octave.sourceforge.net/packages.php |
20 [3]: https://www.mathworks.com/matlab | 23 [3]: https://www.mathworks.com/matlab |
21 [4]: {{ "license.html" | relative_url }} | 24 [4]: {{ "about.html" | relative_url }} |
25 [5]: {{ "license.html" | relative_url }} | |
22 [screen]: {{ "/img/screenshot-2016.png" | relative_url }} | 26 [screen]: {{ "/img/screenshot-2016.png" | relative_url }} |
23 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }} | 27 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }} |
24 | 28 |
25 | 29 |
26 | 30 |
27 --- | 31 --- |
28 | 32 |
29 # [{% octicon rss class:"octicon-rss-octave" %}][Feed] [News] | 33 # [{% octicon rss class:"octicon-rss-octave" %}][Feed] [News] |
30 | 34 |
31 {% for post in site.posts limit:3 %} | 35 {% for post in site.posts limit:3 %} |
32 - [{{ post.title }}]({{ post.url | relative_url }}) | 36 - [**{{ post.title }}**]({{ post.url | relative_url }}) |
33 ({{ post.date | date: "%b %-d, %Y" }}) | 37 ({{ post.date | date: "%b %-d, %Y" }}) |
34 | 38 |
35 <div class="news-content"> | 39 <div class="news-content"> |
36 {{ post.excerpt }} | 40 {{ post.excerpt }} |
37 </div> | 41 </div> |
51 {% highlight octave %} | 55 {% highlight octave %} |
52 b = [4; 9; 2]; % Column vector | 56 b = [4; 9; 2]; % Column vector |
53 A = [ 3 4 5; | 57 A = [ 3 4 5; |
54 1 3 1; | 58 1 3 1; |
55 3 5 9 ]; | 59 3 5 9 ]; |
56 x = A \ b % Solve $Ax = b$ by inverting A | 60 x = A \ b % Solve $Ax = b$ by inverting A |
57 {% endhighlight %} | 61 {% endhighlight %} |
58 | 62 |
59 - Visualize data with **high-level plot commands** in 2D and 3D: | 63 - Visualize data with **high-level plot commands** in 2D and 3D: |
60 | 64 |
61 {% highlight octave %} | 65 {% highlight octave %} |
62 % Create an evenly-spaced vector from -10 to 10 | 66 x = -10:0.1:10; % Create an evenly-spaced vector from -10 to 10 |
63 x = -10:0.1:10; | 67 y = sin (x); % y is also a vector |
64 y = sin(x); % y is also a vector | 68 plot (x,y); |
65 plot(x,y); | 69 title ("Simple 2-D Plot"); |
66 title("Simple 2-D Plot"); | 70 xlabel ("x"); |
67 xlabel("x"); | 71 ylabel ("sin (x)"); |
68 ylabel("sin (x)"); | |
69 {% endhighlight %} | 72 {% endhighlight %} |
70 | 73 |
71 [![Sine plot][plot]][plot] | 74 [![Sine plot][plot]][plot] |
72 | 75 |
73 [plot]: {{ "/img/plot.png" | relative_url }} | 76 [plot]: {{ "/img/example-plot.png" | relative_url }} |