summaryrefslogtreecommitdiff
path: root/data_structures/M_SWITCH.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/M_SWITCH.js')
-rw-r--r--data_structures/M_SWITCH.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/data_structures/M_SWITCH.js b/data_structures/M_SWITCH.js
new file mode 100644
index 0000000..049d8dc
--- /dev/null
+++ b/data_structures/M_SWITCH.js
@@ -0,0 +1,22 @@
+function M_SWITCH () {
+
+
+ var in = [[1],[-1],[-1]];
+
+ var ipar = [[1],[3]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("mswitch",4);
+ model.in=new ScilabDouble([in]);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[nin.toString()],[ipar.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,gr_i);
+}