summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément DAVID <clement.david@scilab.org>2011-05-11 14:26:47 +0200
committerClément DAVID <clement.david@scilab.org>2011-05-11 14:27:30 +0200
commit52b763ae1692f4d0ea2697fbb0ee6c5651086dc0 (patch)
tree240bb0e320db19f33f652dae59d8a04bb709f496
parent30d12b422d90df3c31c74ae9bb0292f40133a6b5 (diff)
downloadscilab-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.sce9
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
7loadXcosLibs(); 7if ~isdef('setw') then exec("SCI/modules/xcos/demos/setw.sci",-1),end
8function demo_xcosinvertpend() 8xcos("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");
11endfunction
12 9
13demo_xcosinvertpend();
14clear demo_xcosinvertpend;
15 10