From 52b763ae1692f4d0ea2697fbb0ee6c5651086dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DAVID?= Date: Wed, 11 May 2011 14:26:47 +0200 Subject: Xcos demos: the inverted pendulum need a global function to be defined Change-Id: Icdc682f5435a3f112fefb11a8df5b5826191c344 --- scilab/modules/xcos/demos/inverted_pendulum.dem.sce | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scilab') 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 @@ // // This file is released under the 3-clause BSD license. See COPYING-BSD. -loadXcosLibs(); -function demo_xcosinvertpend() - if ~isdef('setw') then exec("SCI/modules/xcos/demos/setw.sci",-1),end - xcos("SCI/modules/xcos/demos/Inverted_pendulum.xcos"); -endfunction +if ~isdef('setw') then exec("SCI/modules/xcos/demos/setw.sci",-1),end +xcos("SCI/modules/xcos/demos/Inverted_pendulum.xcos"); -demo_xcosinvertpend(); -clear demo_xcosinvertpend; -- cgit v1.1