comparison index.md @ 74:5e297505996c kai

Some minor content changes.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 13 Oct 2016 17:53:12 +0200
parents a7952259f5d3
children 45d807d2bfcc
comparison
equal deleted inserted replaced
73:7d73884411b6 74:5e297505996c
16 [![GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0][screen-small]][screen] 16 [![GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0][screen-small]][screen]
17 17
18 [1]: http://www.octave.org 18 [1]: http://www.octave.org
19 [2]: http://octave.sourceforge.net/packages.php 19 [2]: http://octave.sourceforge.net/packages.php
20 [3]: https://www.mathworks.com/matlab 20 [3]: https://www.mathworks.com/matlab
21 [4]: https://www.gnu.org/copyleft/gpl.html 21 [4]: {{ "license.html" | relative_url }}
22 [screen]: {{ "/img/screenshot-2016.png" | relative_url }} 22 [screen]: {{ "/img/screenshot-2016.png" | relative_url }}
23 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }} 23 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }}
24 24
25 25
26 26
27 --- 27 ---
28 28
29 # [{% octicon rss class:"octicon-rss-octave" %}]({{ "/feed.xml" | relative_url }}) News 29 # [{% octicon rss class:"octicon-rss-octave" %}][Feed] [News]
30 30
31 {% for post in site.posts limit:3 %} 31 {% for post in site.posts limit:3 %}
32 - [{{ post.title }}]({{ post.url | relative_url }}) 32 - [{{ post.title }}]({{ post.url | relative_url }})
33 ({{ post.date | date: "%b %-d, %Y" }}): 33 ({{ post.date | date: "%b %-d, %Y" }})
34 <span class="post-small">{{ post.excerpt | strip_html}} 34
35 <div class="news-content">
36 {{ post.excerpt }}
37 </div>
35 {% endfor %} 38 {% endfor %}
36 39
40 [Feed]: {{ "feed.xml" | relative_url }}
41 [News]: {{ "news.html" | relative_url }}
37 42
38 43
39 --- 44 ---
40 45
41 ## Some Examples 46 ## Some Examples
42 47
43 - Solve systems of equations with linear algebra operations on 48 - Solve systems of equations with linear algebra operations on
44 **vectors** and **matrices**: 49 **vectors** and **matrices**:
45 50
46 {% highlight octave %} 51 {% highlight octave %}
47 b = [4; 9; 2] % Column vector 52 b = [4; 9; 2]; % Column vector
48 A = [ 3 4 5; 53 A = [ 3 4 5;
49 1 3 1; 54 1 3 1;
50 3 5 9 ] 55 3 5 9 ];
51 x = A \ b % Solve $Ax = b$ by inverting A 56 x = A \ b % Solve $Ax = b$ by inverting A
52 {% endhighlight %} 57 {% endhighlight %}
53 58
54 - Visualize data with **high-level plot commands** in 2D and 3D: 59 - Visualize data with **high-level plot commands** in 2D and 3D:
55 60
56 {% highlight octave %} 61 {% highlight octave %}
57 x = -10:0.1:10 % Create an evenly-spaced vector from -10..10 62 % Create an evenly-spaced vector from -10 to 10
58 y = sin(x) % y is also a vector 63 x = -10:0.1:10;
59 plot(x,y) 64 y = sin(x); % y is also a vector
65 plot(x,y);
66 title("Simple 2-D Plot");
67 xlabel("x");
68 ylabel("sin (x)");
60 {% endhighlight %} 69 {% endhighlight %}
61 70
62 ![Sine plot]({{ "/img/plot.png" | relative_url }}) 71 [![Sine plot][plot]][plot]
72
73 [plot]: {{ "/img/plot.png" | relative_url }}