diff options
author | Clément DAVID <clement.david@scilab.org> | 2011-05-11 14:26:47 +0200 |
---|---|---|
committer | Clément DAVID <clement.david@scilab.org> | 2011-05-11 14:27:30 +0200 |
commit | 52b763ae1692f4d0ea2697fbb0ee6c5651086dc0 (patch) | |
tree | 240bb0e320db19f33f652dae59d8a04bb709f496 | |
parent | 30d12b422d90df3c31c74ae9bb0292f40133a6b5 (diff) | |
download | scilab-52b763ae1692f4d0ea2697fbb0ee6c5651086dc0.zip scilab-52b763ae1692f4d0ea2697fbb0ee6c5651086dc0.tar.gz |
Xcos demos: the inverted pendulum need a global function to be defined
Change-Id: Icdc682f5435a3f112fefb11a8df5b5826191c344
-rw-r--r-- | scilab/modules/xcos/demos/inverted_pendulum.dem.sce | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scilab/modules/xcos/demos/inverted_pendulum.dem.sce b/scilab/modules/xcos/demos/inverted_pendulum.dem.sce index 7678310..d153195 100644 --- a/scilab/modules/xcos/demos/inverted_pendulum.dem.sce +++ b/scilab/modules/xcos/demos/inverted_pendulum.dem.sce | |||
@@ -4,12 +4,7 @@ | |||
4 | // | 4 | // |
5 | // This file is released under the 3-clause BSD license. See COPYING-BSD. | 5 | // This file is released under the 3-clause BSD license. See COPYING-BSD. |
6 | 6 | ||
7 | loadXcosLibs(); | 7 | if ~isdef('setw') then exec("SCI/modules/xcos/demos/setw.sci",-1),end |
8 | function demo_xcosinvertpend() | 8 | xcos("SCI/modules/xcos/demos/Inverted_pendulum.xcos"); |
9 | if ~isdef('setw') then exec("SCI/modules/xcos/demos/setw.sci",-1),end | ||
10 | xcos("SCI/modules/xcos/demos/Inverted_pendulum.xcos"); | ||
11 | endfunction | ||
12 | 9 | ||
13 | demo_xcosinvertpend(); | ||
14 | clear demo_xcosinvertpend; | ||
15 | 10 | ||