Mercurial > hg > ltpda
comparison m-toolbox/test/graph_test.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % Exploring how to plot graphs. | |
2 % | |
3 clear; | |
4 | |
5 h1 = history('n1', '0.1'); | |
6 h2 = history('n2', '0.1'); | |
7 h3 = history('n3', '0.1', [], h1); | |
8 h4 = history('n4', '0.1', [], h2); | |
9 h5 = history('n5', '0.1', [], [h3 h4]); | |
10 | |
11 h6 = history('n6', '0.1') | |
12 h7 = history('n7', '0.1') | |
13 h8 = history('n8', '0.1', [], [h6 h7]) | |
14 | |
15 h9 = history('n9', '0.1', plist([param('a', 1) param('b', 2)]), [h5 h8]) | |
16 | |
17 | |
18 % make nodes from history | |
19 [h,ax] = plot(h9) | |
20 title('test') | |
21 | |
22 | |
23 %% | |
24 % treeplot([0 1 1 2 3]) | |
25 |